Here's some translation (the Unix commands are not always exactly equivalent, so you should check out the R help): R has many commands that allow you to navigate files and directories, like on Unix, only the commands are generally NOT the same. If you want to change directories, you can use the setwd() command or if you are in the Windows GUI, you go to "File." and then click on "Change dir"
If you are entering a directory path you can use " Note that R uses "/" to separate directories (like unix) and not the Windows' "
You can find what directory you are in with the getwd() command: If you just double-click from the desktop, you probably don't know what directory you are using - R starts in the default directory. Warning: Many parts of this may be Windows specific. This is not how you would export a ame so that you could give it to someone to read as a spreadsheet, for example (for which you would want write.table maybe) However, this is for manipulating R objects, which are meant to be read and handled in R. This tutorial gives some useful commands for working with R objects.
Or perhaps you have run out of room on your Stanford account and need to delete your R objects, but would like to save some of them separately and zip them up. Upload a diagnostics report and the output from the associated terminal session to a service like Gist and include the link.If you become a frequent user of R, you may find that you want to get some object that you made in R and move it to a different computer to work on it. If you are still unable to start RStudio and you are using the open-source version, please open a new topic in and provide any relevant details as noted below. For additional information, see the following Knowledge Base article on Using Macports R with RStudio.
To use Macports R with RStudio, you need to install the "R-framework" port. In this case, we recommend creating a backup version as described in the Knowledge Base article. Note, this will delete all temporary files and unsaved changes made in RStudio. To do this, see the following Knowledge Base article on Resetting RStudio's State. In some cases, it is necessary to reset RStudio's state analogous to a fresh installation. Check the permissions and make sure that you have read/write/execute permissions to this folder - if not, change the permissions or reset RStudio's state as described below. RStudio saves some session files in the ~/.rstudio-desktop directory - if this directory has its permissions changed, RStudio may not be able to read and write to that folder and may fail to start. Check the permissions on the ~/.rstudio-desktop directory
If you have antimalware software configured that may be blocking RStudio, please check its settings and whitelist RStudio if necessary. If you have a firewall, HTTP or HTTPS proxy configured, add localhost and 127.0.0.1 to the list of approved Hosts and Domains. As a result, it is possible a (software-based) firewall, network setting, or antimalware program is blocking access to RStudio. Check firewall, proxy settings, and antimalwareĪlthough RStudio does not require internet access, it does use a localhost connection to link your R session with the RStudio IDE. Note: On Windows, you can force RStudio to bind to a specific version of R by pressing and holding Ctrl when starting RStudio. The displayed location must be in your search path for RStudio to successfully bind to your R installation. Open a standard console session (RGui, R.app, Terminal, etc) and type the following command at the console: > Sys.which("R") If you installed R to a non-default location, it is possible RStudio cannot find R on your machine. Be sure to include the steps to reproduce this error (including necessary code) and we'll investigate. If you are able to determine the source of the problem, please notify us with the details. If RStudio successfully starts after removing these files, try to pinpoint which file resulted in the error.
The R code within these files may be causing an error (see R Code is Not Working). RData from your initial working directory. Note: On Windows, if you have multiple versions of R installed, you can press and hold Ctrl when starting RStudio to select your version of R.
Make sure your current installation meets this requirement or download it here RStudio requires R version 3.0.1 (or higher) to run. If one of the following does not describe your problem, see the information at the bottom to start a new support discussion. Below is a list of common start-up problems.