change Rstudio R version from outside Rstudio - rstudio

I changed Rstudio's R version to a non-default one from Tools-options. Now when I reopen Rstudio, it fails to start. Just a blank window with Rstudio title. Uninstall and reinstall didn't help.
Is there a way to change Rstudio's R version from outside Rstudio, say a config file?

OK, found the config in the file
AppData\Roaming\RStudio\desktop.ini

Related

RStudio Desktop: r is taking longer to start than usual

I have been running rstudio desktop for several months but recently I went to start it and it says "r is taking longer to start than usual" and the loading wheel just spins and spins but it never opens.trys to load but never opens I am running the latest versions of R and Rstudio as of this post. I am running windows 10 as my operating system.
I have tried deleting .Rdata, Rprofile.site, .Rprofile and .Renviron files. I have uninstalled and reinstalled both R and Rstudio to the default locations. I have tried clearing the global environment and the DNS cache. When I try to start R with an OS command it says "R is not recognized as an internal or external command, operable program or batch file." Yet if I use the short cut I am able to open base R.
Any suggestions on how to resolve this issue would be much appreciated I have been trying to fix this for days but have found nothing but dead ends. Please let me know if there is more data I can provide that would be useful in resolving this issue.
Thank you.
I am answering this for posterity, the OP of this question reported being able to resolve their issue in another forum. Their solution was:
I had to uninstall R and Rstudio
Launch "run" enter %localappdata% and delete all files pertaining to R or Rstudio
Launch "run" enter %appdata% go to roaming and delete the Rstudio files there
Got to where I had my R packages installed and delete those
Then I had to reinstall R and RStudio
I ran into this same strange error and I was able to resolve it without touching R or my packages:
Uninstall RStudio
Launch "run" enter %localappdata% and delete all files pertaining to Rstudio
Launch "run" enter %appdata% go to roaming and delete the Rstudio files there
Reinstall RStudio
Try to remove remove all config files like .Rprofile, .Renviron, and .Rdata from your working directory, this worked for my case.
More details

R file opening in Spyder but not opening in RStudio

I have downloaded 'data_preprocessing_template.r' file from internet for learning purpose. When I opening the file in Rstudio it opens but code not visible, I am pasting screen-shot below for reference->
But the code is visible when I open the same file in Spyder, screen-shot is attached for reference.
Why it is happening? Thanks in advance for any helpful suggestion.
You can install Cran for windows
below steps will be useful.
1.Open website link https://cran.r-project.org
2. Download R 3.6.1 for windows
3. Then Install it . (optional :- restart your system )
Hope this will helpful.

get vim working in mobaxterm

I have installed gvim and vim in mobaxterm 8 (using apt-get and mobapt respectively), and can't get either to work. nano works fine.
When I run the program, the cursor moves to a new line in the terminal but nothing happens.
I have also tried creating a .vimrc. Does anyone have any ideas? Thanks.
I installed the latest version of MobaXterm as up today which is 9.1 (http://mobaxterm.mobatek.net/download-home-edition.html) and the list of bug fixes includes the freezing problem you are are talking about. It works for me now and I no longer see that issue. The only thing is that after the installation is completed you need to download the CygUtils plugin and copy it to the same folder where the MobaXterm executable is located and then restart the application. It seems overall more stable now. Hope that helps.
I am using V9.4 which already has the vim. To configure the environment for your vim you may creat a .vimrc file in your home directory (go to the directory using cd command only).

R emacs windows

I'm a newbie, so bear with me. ive gone through instructions offered on Paul E. Johnson's site on using R and emacs on a windows platform. Ive downloaded both the 32 bit and 64 bit versions of R 3.0.3 and Professor Goulet’s Emacs-ESS compilation. however when running gnu emacs, no R icon appears on the button bar. Moreoever, Ive tried right-clicking on an R file and tried opening it with runemacs.exe but that doesnt work. Windows refuses to display runemacs.exe as an option. R run on its own works fine though. Both R and Gnu emacs are stored in program files (not in program filesx86) if that helps. Also in the R folder there subfolders for both R 3.0.3 as well as R 3.0.0. Please help!
Have you started ESS from Emacs?
M-x R
Also, what is the path where you've installed R? That could be the issue and you likely need to edit a configuration file in Emacs. For example, in the site-start.el file.
;; Path to R executable. Uncomment and edit as needed if R is
;; installed in such an unusual place that ESS can't find it. (And
;; then keep updating with each R update!)
;(setq-default inferior-R-program-name
; "c:/program files/r/r-2.7.1/bin/rterm.exe")
So you probably want to uncomment this and:
(setq-default inferior-R-program-name
"c:/path/to/where/you/installed/r/r-3.0.3/bin/rterm.exe")
This is for the Goulet package and this configuration file is mentioned on the website.
EDITED: because I realized that I overlooked that you had used Goulet's package initially.

Set up Vim to work with R and Sweave in Windows

I have installed vim in windows and would like to configure it so i can send code to R. I want to also use Sweave with it. However, i have Googled and failed to find clear step-by-step instructions on how to set this up.
my attempts so far:
installed Vim using executable from ftp://ftp.vim.org/pub/vim/pc/gvim73_46.exe
downloaded R-plugin from https://github.com/jcfaria/Vim-R-plugin/zipball/master and extracted it to a folder on my pc. following instructions in the r-plugin.txt file, i installed python-3.2.msi and pywin32-216.1.win32-py3.2exe. I extracted the plugin zip-file to C:\Program Files (x86)\Vim\vimfiles\ merging like-named folders together. then i opened Vim and typed :helptags C:\Program Files (x86)\Vim\vimfiles\doc. I closed Vim then I started R and reopened Vim. I typed :new anewfile.R and got the error message
"Python interface must be enabled to run Vim-R-Plugin. Please do ':h r-plugin-installation details
and when i type this i get
error149, no help for r-plugin-installation
I also did not see the buttons that send code to R.
I failed to understand the instruction that , "You may have to
adjust the value of |vimrplugin_sleeptime|."
What should i do?
-I already have Miktex 2.9 on my PC. will Vim see it? How do I set up Vim to see Latex?
Will appreciate any help.
Note: I have used rstudio with Sweave and also eclipse but there are some issues i need to resolve and hence need to try vim and see how it will work out.
I suppose that this solution will not satisfying you completely but Rstudio IDE features a basic VIm editing mode: Global Option > Code Editing > Enable vim editing mode.
I think the windows binaries of Vim 7.3 need Python 2.7 or 3.1. You can check the information that you get via :version; the linked Python version is somewhere in it.
So my solution would be installing Python 2.7 (+pywin32 for python 2.7). Also, check if Python is working in Vim before trying to use the R plugin.

Resources