Installing R packages on Azure failed: non-zero exit status - r

I just started using RStudio on Azure Databricks. After I select the cluster and click on the Libraries tab I managed to install few extra packages (timetk, tidymodels, rules, doFutures). But when I tried to install the modelitme package I got the following error:
java.lang.RuntimeException: Installation failed with message:
Error installing R package: Could not install package with error: installation of package ‘V8’ had non->zero exit status installation of package ‘rstan’ had non-zero exit status installation of package >‘prophet’ had non-zero exit status installation of package ‘modeltime’ had non-zero exit status Full >error log available at /databricks/driver/library-install-logs/r-package-installation-2020-10->03T10:31:18Z-vcap9s0e.log
Error installing R package: Could not install package with error: installation of package ‘V8’ had non->zero exit status installation of package ‘rstan’ had non-zero exit status installation of package >‘prophet’ had non-zero exit status installation of package ‘modeltime’ had non-zero exit status
How do I solve problem like this?

Related

How can I install rayshader on an AWS machine?

I have been trying to solve this problem for a few hours but I can't find any way to do it. The command that I have used is: install.packages("rayshader")
I have tried to install the 'rayshader' package on an AWS machine with an EC2 instance. The intention of this installation is to be able to run a make command for the auto creation of a RMD report containing 3D graphics from 'rayshader'.
The errors returned by the execution are as follows:
make: *** [RcppArmadillo.so] Error 1
ERROR: compilation failed for package ‘RcppArmadillo’
* removing ‘/home/ubuntu/R/x86_64-pc-linux-gnu-library/3.4/RcppArmadillo’
ERROR: dependencies ‘jpeg’, ‘RcppArmadillo’ are not available for package ‘rayimage’
* removing ‘/home/ubuntu/R/x86_64-pc-linux-gnu-library/3.4/rayimage’
ERROR: dependencies ‘raster’, ‘rayimage’, ‘RcppArmadillo’ are not available for package ‘rayshader’
* removing ‘/home/ubuntu/R/x86_64-pc-linux-gnu-library/3.4/rayshader’
The downloaded source packages are in
‘/tmp/RtmpDWE73c/downloaded_packages’
Warning messages:
1: In install.packages("rayshader") :
installation of package ‘jpeg’ had non-zero exit status
2: In install.packages("rayshader") :
installation of package ‘RcppArmadillo’ had non-zero exit status
3: In install.packages("rayshader") :
installation of package ‘rayimage’ had non-zero exit status
4: In install.packages("rayshader") :
installation of package ‘rayshader’ had non-zero exit status
Please, any help would be greatly appreciated!

Deploy R on Azure on Linux (centos 8.2.2004)

I am trying to install R Shiny on Azure , Linux (centos 8.2.2004). Using the manual : https://linuxize.com/post/how-to-install-r-on-centos-7/
However I can not install packages. I receive error :
"ERROR: failed to lock directory ‘/usr/lib64/R/library’ for modifying Try removing ‘/usr/lib64/R/library/00LOCK-Rcpp’ ERROR: dependency ‘Rcpp’ is not available for package ‘later’
* removing ‘/usr/lib64/R/library/later’ ERROR: dependencies ‘Rcpp’, ‘later’ are not available for package ‘promises’
* removing ‘/usr/lib64/R/library/promises’ ERROR: dependencies ‘Rcpp’, ‘promises’, ‘later’ are not available for package ‘httpuv’
* removing ‘/usr/lib64/R/library/httpuv’ ERROR: dependencies ‘httpuv’, ‘later’, ‘promises’ are not available for package ‘shiny’
* removing ‘/usr/lib64/R/library/shiny’
The downloaded source packages are in
‘/tmp/RtmpGIfMqF/downloaded_packages’ Updating HTML index of packages in '.Library' Making 'packages.html' ... done Warning messages: 1: In install.packages("shiny") : installation of package ‘Rcpp’ had non-zero exit status 2: In install.packages("shiny") : installation of package ‘later’ had non-zero exit status 3: In install.packages("shiny") : installation of package ‘promises’ had non-zero exit status 4: In install.packages("shiny") : installation of package ‘httpuv’ had non-zero exit status 5: In install.packages("shiny") : installation of package ‘shiny’ had non-zero exit status"
I have tried to fix the issue however , was able. If you have some ideas, please advice, thanks.
I solved the problem finally. There was necessary to delete the folder :
sudo rm -rf /usr/lib64/R/library/00LOCK-Rcpp
Then tried instal shiny package again and worked fine.

Can't install Codebook package in R

I am attempting to install the R package "codebook" on OSX. I receive the following error message. I receive similar error messages when I try to independently install these dependencies. Is there a way that I install via the terminal or otherwise install these dependencies?
My apologies if this is not enough information in order to provide guidance. Please let me know and I would be happy to provide additional context. I am using RStudio Version 1.0.136
Thank you
ERROR: compilation failed for package ‘RcppEigen’
installation of package ‘RcppEigen’ had non-zero exit status
ERROR: dependencies ‘lavaan’, ‘OpenMx’, ‘semTools’ are not available for package ‘MBESS’
installation of package ‘MBESS’ had non-zero exit status
ERROR: dependency ‘igraph’ is not available for package ‘DiagrammeR’
installation of package ‘DiagrammeR’ had non-zero exit status
ERROR: dependency ‘RcppEigen’ is not available for package ‘lme4’
installation of package ‘lme4’ had non-zero exit status
ERROR: dependency ‘DiagrammeR’ is not available for package ‘data.tree’
installation of package ‘data.tree’ had non-zero exit status
ERROR: dependencies ‘car’, ‘data.tree’, ‘DiagrammeR’, ‘lavaan’, ‘lme4’, ‘MBESS’ are not
available for package ‘userfriendlyscience’
* removing ‘/Library/Frameworks/R.framework/Versions/3.3/Resources/library/userfriendlyscience’
Warning in install.packages :
installation of package ‘userfriendlyscience’ had non-zero exit status
ERROR: dependency ‘userfriendlyscience’ is not available for package ‘codebook’
* removing ‘/Library/Frameworks/R.framework/Versions/3.3/Resources/library/codebook’

There is no package called devtools in R even after installing devtools

I am trying to follow this guide to get R as a usable language in jupyter notebook.
The first step is to run:
install.packages(c('repr', 'IRdisplay', 'evaluate', 'crayon', 'pbdZMQ', 'devtools', 'uuid', 'digest'))
But even after running this command, I still cannot execute the next step:
devtools::install_github('IRkernel/IRkernel')
returning the error:
Error in loadNamespace(name) : there is no package called ‘devtools’
If you look at the comment section of the link I posted someone else seems to also have run into this problem.
Update:
Scott Richie suggested I rerun install.packages('devtools')
this returned:
The downloaded source packages are in
‘/tmp/RtmpgBI8IU/downloaded_packages’
Warning messages:
1: In install.packages("devtools") :
installation of package ‘curl’ had non-zero exit status
2: In install.packages("devtools") :
installation of package ‘openssl’ had non-zero exit status
3: In install.packages("devtools") :
installation of package ‘git2r’ had non-zero exit status
4: In install.packages("devtools") :
installation of package ‘httr’ had non-zero exit status
5: In install.packages("devtools") :
installation of package ‘gh’ had non-zero exit status
6: In install.packages("devtools") :
installation of package ‘usethis’ had non-zero exit status
7: In install.packages("devtools") :
installation of package ‘devtools’ had non-zero exit status
UPDATE 2:
I read up on related threads and was able to get devtools. but I ran into the problem:
> IRkernel::installspec()
Error in IRkernel::installspec() :
jupyter-client has to be installed but “jupyter kernelspec --version” exited with code 1.
This other thread had exited with code 127 and none of the solution did not work in my case. : jupyter-client has to be installed but “jupyter kernelspec --version” exited with code 127

installation of package ‘ggvis’ had non-zero exit status

I'm on Ubuntu 12.04.5 and have R v.3.1.3 installed.
I'm using the command
install.packages("ggvis")
And that yields
ERROR: dependency ‘mime’ is not available for package ‘shiny’
* removing ‘/home/milia/R/x86_64-pc-linux-gnu-library/3.1/shiny’
ERROR: dependency ‘shiny’ is not available for package ‘ggvis’
* removing ‘/home/milia/R/x86_64-pc-linux-gnu-library/3.1/ggvis’
The downloaded source packages are in
‘/tmp/Rtmp6Cz9En/downloaded_packages’
Warning messages:
1: In install.packages("ggvis") :
installation of package ‘shiny’ had non-zero exit status
2: In install.packages("ggvis") :
installation of package ‘ggvis’ had non-zero exit status
So I figured I had to install shiny first. So I typed
install.packages("shiny")
Which gave:
ERROR: dependency ‘mime’ is not available for package ‘shiny’
* removing ‘/home/milia/R/x86_64-pc-linux-gnu-library/3.1/shiny’
The downloaded source packages are in
‘/tmp/Rtmp6Cz9En/downloaded_packages’
Warning message:
In install.packages("shiny") :
installation of package ‘shiny’ had non-zero exit status
So I thought installing mime.
Did as usual
install.packages("mime")
Which gave
Warning message:
In install.packages("mime") :
installation of package ‘mime’ had non-zero exit status
I'm not sure what to do next, and the similar problems in stack with a non-zero exit status didn't help much.
My Rprofile can be found here.

Resources