I have the following problem:
I have some development version of my package loaded in R session
I edited the source file.
I detach it and do:
system("R CMD check realizedvolatility")
system("R CMD build realizedvolatility")
system("R CMD install realizedvolatility_0.1.tar.gz")
library(realizedvolatility)
Until now, everything works. Now, if I try to bring up help file, for example ?realizedvolatility , the error
Error in fetch(key) : internal error -3 in R_decompress1
occurs.
The remedy is to restart entirely the R session, then everything works. Is there any way to make it work within one session? I tried detaching from namespace, installing with various options, nothing worked.
I am using Mac OS X Lion, and R 2.14.1
I asked the same question in R-help and one R core replied "this is by design" which means you cannot do anything about it except restarting R: https://stat.ethz.ch/pipermail/r-help/2011-July/283916.html (although I still do not understand why this design cannot refresh the cache database...)
Related
I am currently working on installing the gpu version of tensorflow onto my computer; however, I am experiencing several difficulties. My initial problem was a relatively common problem where Tensorflow was not able to find the CUDA libraries during installation, and I found a very useful post here on StackOverflow that mentioned that by changing the 'CUDA_PATH' environment variable on my computer and adding the 'bin' folder to said variable's path, Tensorflow should be able to find the CUDA libraries.
This didn't work for me, and so I changed the name of the environment variable 'CUDA_PATH' to simply be 'PATH', since that was the environment variable name that was shown on the post I followed.
It didn't work either so I changed it back. Now, everytime I open RStudio, the following error message appears:
Error in Sys.setenv(PATH = new_path) : wrong length for argument
In addition: Warning message:
In system2(conda, c("run", in_env, run_args, shQuote(cmd), args), :
running command '"C:/Users/maria/AppData/Local/r-miniconda/condabin/conda.bat" run --prefix "C:\Users\maria\AppData\Local\r-miniconda\envs\r-reticulate" --no-capture-output "python" -c "import os; print(os.environ['PATH'])"' had status 1
I have tried uninstalling R, Rtools, Rstudio, miniconda and all my Nvidia GPU drivers, as well as CUDA and CUDANN. I then have re-downloaded every programme, and the error still appears whenever I start a session in Rstudio (before I can even do anything remotely related to tensorflow or before I even use R in any way).
If anyone has any suggestions I would greatly appreciate some help with this issue.
Thanks :)
P.S.: Please find below a screenshot of my RStudio upon opening the programme.
I have recently moved from MRO 3.4.3 to R 3.5.0. I can start and use the new installation of R perfectly from the terminal, but when I stat Rstudio-server, an error panel appears with the message: "Error occured during transmission"
The log at /var/log/messages shows this:
Jun 6 11:28:51 slave1 rsession-victor[116037]: ERROR R SUICIDE: unable to initialize the JIT|||; LOGGED FROM: void<unnamed>::rSuicide(const std::string&) /root/rstudio/src/cpp/session/SessionMain.cpp:1023
I have tried to remove the files /etc/rstudio/rserver.conf and /etc/rstudio/rsession.conf that I had changed to use the previous MRO installation, but it didn't work. Also, I have tried to to remove completely the .rstudio folder in my home directory.
Any ideas about how to solve this?
Thanks!
I had the same problem after installing R 3.5.1 from sources.
The reason for the error is that libR.so is not build using the
simple installation procedure described in file INSTALL. RStudio
searches for this and finds an incompatible (old) one. Use this instead:
./configure --enable-R-shlib
make
Having some issues helping a colleague at work install RStudio. She was getting the following error message whenever she opened up the programme and when trying to install new packages.
Error in yaml.load(readLines(con), error.label = error.label, ...) :
object 'C_unserialize_from_yaml' not found
Error in yaml.load(readLines(con), error.label = error.label, ...) :
object 'C_unserialize_from_yaml' not found
Seems to be the error that's being discussed here. We've followed the steps in the answers and haven't had any luck.
Uninstalled the yaml package, reinstalled RStudio and got a different error message (not surprising given the package was no longer installed).
Error in loadNamespace(name) : there is no package called ‘yaml’
Error in loadNamespace(name) : there is no package called ‘yaml’
Then tried each of the answers in the link and ended up with the original error message again.
Beyond what I've googled in the past 15 minutes, I don't know anything about yaml or what it's supposed to do. Opening R rather than RStudio seems to work as it should.
R version is 3.4.3, RStudio is 1.1.423 for Windows and yaml version that was originally installed was 2.1.16. Not sure if it's relevant, but we are on work laptops that require us to install new programmes (and in the case of R, packages) into C:\Users\NAME\Desktop\My Software, but that seems to have been done correctly.
Any help greatly appreciated.
Thanks,
James
I'm getting a confusing error while using RStudio. When I use the command line, in the middle of typing a command (never while executing a command), R throws the following error:
Error in loadNamespace(name) : there is no package called ‘.GlobalEnv’
I am using R version 3.2.3 and RStudio version 0.99.491; I have tried to re-install RStudio and to delete settings.
Look at the tabs that open at startup.
In my case, it was because there was a debugging tab opened and RStudio was trying to load it at startup. I just closed it and that error stopped.
I'm trying to install Swirl courses in RStudio on 64-bit Ubuntu 15.10, and I am running across an error. I tried to install a course using the command install_from_swirl("Data_Analysis"), but the system either just hangs (R needs to be interrupted to recover from this), or I get the following error:
Error in unzip(path, list = TRUE) :
zip file '/home/xxxxx/R/x86_64-pc-linux-gnu-library/3.2/swirl/Courses
/temp.zip' cannot be opened
The temp.zip doesn't appear to be a zip archive (I'm unable to open in on the command line).
You actually helped me with the command! I used
install_course("Data Analysis")
but it didn't work, then I used
install_from_swirl("Data_Analysis")
and it worked! Try running the swirl library first:
library("swirl")
install_from_swirl("Data_Analysis") # CASE SENSITIVE!
swirl()
I wish you luck!