Unable to print R script output to console

So I have all the necessary language and plugins installed in my PyCharm. However, even a simple R code like:

myString <- "Hello, World!"
print(myString)

gives the following output:

"C:\Program Files\R\R-3.6.0\bin\R.exe" --no-save --quiet

Process finished with exit code 0

Instead of the expected hello world. What am I missing?

 

4 comments
Comment actions Permalink

Doesn't reproduce for me.

What R interpreter do you have configured in File | Settings | Languages & Frameworks | R Language ?

Navigate to R's bin directory and use RScript.exe to run the same script file - do you get the print output?

1
Comment actions Permalink

Great. worked

0
Comment actions Permalink

so how to solve it, I have the same problem.

in pycharm it just gives:--no-save --quiet

0
Comment actions Permalink

@Ll894073932

Try running the script directly with R interpreter from your terminal.

0

Please sign in to leave a comment.