Starting Hello World.R results in error

Sorry for this totally noob question but I am stuck...
I installed R402 and RStudio. I added some rules to Hello World.R and it runs fine when I select the code and press RUN. But when I press SOURCE (source the content of the active file) I get an error message:

[Workspace loaded from ~/.RData]

> debugSource('~/Hello world.R')
Error in parse(filename, encoding = encoding) : 
  ~/Hello world.R:36:1: unexpected '/'
36: /

Why is this not working?
(I am on Windows 10)

And I solved it !!!
I thought the slash was saying something about the filename, but there was actually a slash at line 36 in my code. Too much C programming I think.

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.