RStudio terminal not working

Hi am unable to run any command on RScript and getting error as
"getwd() is not recognized as an internal or external command , operable program or batch file” .
I uninstalled and reinstalled Rstudio and R but still getting the same error.

This is a common error from a Windows command line. Are you sure you're in RStudio or an R console?

I am using RStudio. I tried on RStudio from Anaconda too.

@Yarnabrina .. Thanks for the reply!

I tried that '2+2' command, Instead of returning 4, it is throwing the similar error as :
'2' is not recognized as an internal or external command , operable program or batch file” .

@Yarnabrina If I run on console, it is working fine, But I am getting these errors on Terminal for which I am unable to use RScripts.

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