removing 'C:/Users/Jacob/Documents/R/win-library/4.1/StatsBombR'.loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestartĮRROR: lazy loading failed for package 'StatsBombR' Warning: replacing previous import 'foreach::accumulate' by 'purrr::accumulate' when loading 'StatsBombR'Įrror in loadNamespace(i, c(lib.loc. Warning: replacing previous import 'jsonlite::flatten' by 'purrr::flatten' when loading 'StatsBombR' Warning: replacing previous import 'foreach::when' by 'purrr::when' when loading 'StatsBombR' ** byte-compile and prepare package for lazy loading installing source package 'StatsBombR'.Installing package into ‘C:/Users/Jacob/Documents/R/win-library/4.1’ checking for empty or unneeded directories.checking for LF line-endings in source and make files and shell scripts.When I tried to download "StatsBombR" it gave me an error message, I will post the whole linefeed here:ĭownloading GitHub repo checking for file 'C:\Users\Jacob\AppData\Local\Temp\RtmpINyEgW\remotes5b24272e2809\statsbomb-StatsBombR-0aa173f/DESCRIPTION' Once confirmed, you can run the install.package('rJava') command.It is directing me to first download RStudio, which I've done, and then use it to download the following packages: tidyverse, devtools, ggplot2. If that ran correctly, you should now see both files in /usr/lib64 path: Which should be located at /usr/lib/gcc/x86_64-amazon-linux/4.8.5/libgomp.spec - if so, you can manually create symlinks to fix this: $ sudo ln -s /usr/lib/gcc/x86_64-amazon-linux/4.8.5/libgomp.spec /usr/lib64/ It looks like the installation is requiring libgomp.spec/libgomp.a files, so you can first find that file: $ sudo yum install -y R-java-devel.x86_64Īnd finally, install the necessary XML libraries to support the XML package in R:Īfter which you can then open R (either as root user.) Instead, from a prompt, install R + the necessary development files for later installation of R packages: may be valid for another distro of Linux, but does not appear to be available in the yum repos - running yum search 'r-cran-rjava' returned no results 2) root) for that command 1īut I don't believe that package exists in the available repos (ie. Which will allow you to impersonate the superuser (ie. Is there a way that I can still install these packages?įor Amazon SageMaker notebook Instances, you have the ability to assume root privileges, so instead of: XML is a dependency for multiple R libraries (as is rJava). This issue wasn't reproducible on a local RStudio environment. However, I don't have root access and cannot install as I get the message "You need to be root to perform this command." So this workaround hasn't been possible.Īfter checking the documentation for rJava and XML, I am running the requirements for JDK and other system requirements in SageMaker. Which involves commands such as: yum install r-cran-rjava I found a workaround that could work if I had root access, which is installing via the command line in a terminal. XML is the second package that I have run into this issue with. “installation of package ‘XML’ had non-zero exit status”Updating HTML index of packages in '.Library' I've come across two different libraries that result in the following error: Warning message in install.packages("XML", repos = ""): Hi all, I'm having an issue with an R kernel/Jupyter notebook.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |