Cannot open rstudio from command line though installation worked - r

I can't start rstudio from my linux terminal. It always shows me this message:
Unable to determine real path of R script /home/remi/anaconda3/bin/R (system error 2 (No such file or directory))
I have Kubuntu 18 and anaconda installed on it.
I had trouble with installing curl and other libraries that need curl.
Since it was maybe due to a problem of paths, I removed R and RStudio from my conda environment in order to work only on the R and RStudio installed in Kubuntu. Something must have gone wrong.
I have tried to remove and reinstall both R and RStudio but it didn't work.
Weirdly, I can launch RStudio from my application launcher and I was able to install all the libraries I needed.
I would like to be able to launch RStudio from the terminal without any problem.
Does someone know what the problem is ?
Thank you !

Related

Rstudio launch error, pointing to wrong location of R

When Rstudio is launched from the Ubuntu launcher, I got an error
"R script path (/usr/lib/R) is a directory rather than a file."
My R is installed in
/usr/bin/R
This is quite strange as everything was fine just few hours ago and I haven't made any change to R or Rstudio.
Question is, how to make Rstudio point to the correct location of R? I'm not able to get inside the Gui, so it has to be done on command line.
Platform :
Rstudio 1.1.442
Ubuntu 16.04
R 3.4.4
EDIT : Completely reinstalled Rstudio, gotten ride of the .rstudio-desktop folder, still the same error.
I put this line in .bashrc, and I'm able to launch it from a terminal,
export RSTUDIO_WHICH_R=/usr/bin/R

Cannot get IRkernel::installspec() to work, jupyter-client not visible

I am still in progress to get Jupyter-Notebook and R working together on Windows 10 machine. After solving the problem with install_github() I am now facing just another issue. I am still following the official installation guide, I am stuck at step 2:
Every time I get this error - I have tried this in R GUI and RStudio, the same:
> IRkernel::installspec()
Error in IRkernel::installspec() :
jupyter-client has to be installed but “jupyter kernelspec --version” exited with code 127.
In addition: Warning message:
In system2("jupyter", c("kernelspec", "--version"), FALSE, FALSE) :
'"jupyter"' not found
My attempts so far: It was suggested here and here, that this could be a problem with the PATH variable setting, so I have added Anaconda to the PATH enviroment. I also installed the jupyter-client via the Anaconda console. No change so far. Any ideas?
This answer is based on this by #Ryan, but since the question answered was actually about a Linux based system I put it here in a Windows question:
One way to overcome the problem - if adding PATH variables to the environment doesn't work - is the following:
If Anaconda is installed and the Jupyter-Notebook with it (should be the standard install), open up the Anaconda prompt, not the Windows command prompt or the Anaconda Navigator
Look up the executable of R (not Rgui or Rstudio), it should be somewhere like C:\Program Files\R\R-3.5.1\bin and copy the path
Paste the path into the Anaconda prompt and start R by typing R
Now execute IRkernel::installspec() once again, this time there shouldn't be an error
Now you can start an R kernel within Jupyter-Notebook
You should try to open R in the terminal, if you changed directory where R il located type:
R.exe
and then run:
IRkernel::installspec()
I was having this issue trying to run Jupyter Lab on my Ubuntu 18.04 LTS headless server running in an Azure VM.
To resolve the issued, I had to navigate to /usr/bin and open R from there. It turns out that despite my path, calling R from the terminal opened the anaconda3 version in /home/<you>/anaconda3/bin/R.
Run IRkernel::installspec() from /usr/bin/R in as sudo and it should add the kernel.
If jupyter.exe is installed under c:\python36\sripts, run
"setwd("c:/python36/scripts")" on R GUI, run "IRkernel::installspec()"
Simply create a new virtual environment for R. Either using the CLI or the anaconda Navigator (best recommended, If and if you're using Anaconda).

After install R v3.4.3 inline help menu does not work

I've installed R version 3.4.3 ("Kite Eating Tree") onto my Ubuntu 16.04 computer. When I run RStudio I can access the help manuals inline with no issue (e.g. if I type ?lm the documentation will come up), however when I run a session of R in the Terminal the inline documentation does not work. I've tried ?lm or help(lm), I've also loaded other R packages and tried to access their help documentation and I receive the same error ( the terminal will freeze and I'll have to press Ctrl-C to exit the command).
I downloaded the tarball to install R, and after compiling it I ran make install-info and make install-pdf, and these haven't made any difference.
Any advice or help would be greatly appreciated.

RStudio Install Packages and Package Updates both download then fail with cannot open file

Running happily with R 3.4 and RStudio 1.0.143 under Win10 this problem occured bringing project development to a halt. Downloads each occur and are unzipped and then the a presumably first file in the first item gets:
Error in install.packages : cannot open file 'C:/Users/Admin/Documents/R/
win-library/3.4/file30504386b80/rJava/javadoc/resources/background.gif':
Permission denied
and the prompt returns.
Updating to R version 3.4.1 (2017-06-30), RStudio Version 1.0.153 was to no avail. Using the OS to remolve all R versions and trying again with 3.4.1 did not work. Removing R again and deleting the R directory to refresh the library did not work. My virius software like to tell how helpful it has been and has not, so that issue seems unlikely.
Giving the user full control of the R library did not help.
could package-updates be a tag like install-updates?
It looks there is a problem between Java and rJava.
You should try reinstalling Java using chocolatey package manager (https://chocolatey.org/) and then reinstall rJava package.
I had a similar issue two weeks ago on a windows laptop.
I had this problem for a long time. only in RStudio.
Install the package on R and Library it. Go to RStudio and require the package.
It works!

Octave Installation Failing on Mac OS X Yosemite

I am trying to install octave through brew on mac (10.10.5 Yosemite). The command used is brew install octave . While installing, the process tries to install qt (version 4.8.7) which is essentially failing with the below error
Error : 'File already exists. /usr/local/Cellar/qt/4.8.7'.
When I check the file at this particular location, I don`t see any such directory, though the directory does appear and is created during the installation (probably getting removed later when the task fails).
Could someone please point out what I need to do exactly? Is Qt really required for Octave installation? If not then any way to skip it?

Resources