Can't install Codebook package in R - 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’

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.

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

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?

Receiving "package had non-zero exit status" when installing packages on campus Rstudio server?

I'm trying to install ggplot2 on my campus' Rstudio server. Unfortunately I receive the classic "installation of package 'ggplot2' had non-zero exit status." I've looked through the many threads of users who've had the same problem with other packages, but haven't found any workable solutions.
I've tried using install.packages("ggplot2", dependencies = TRUE), which hasn't worked.
Also, I'm running the most recent version of OSX on a MacBook Pro.
This is the error message I receive:
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/mnt/trafficstop/jrleary/R/x86_64-redhat-linux-gnu-library/3.5/vctrs’
Warning in install.packages :
installation of package ‘vctrs’ had non-zero exit status
ERROR: dependency ‘vctrs’ is not available for package ‘pillar’
* removing ‘/mnt/trafficstop/jrleary/R/x86_64-redhat-linux-gnu-library/3.5/pillar’
Warning in install.packages :
installation of package ‘pillar’ had non-zero exit status
ERROR: dependency ‘pillar’ is not available for package ‘tibble’
* removing ‘/mnt/trafficstop/jrleary/R/x86_64-redhat-linux-gnu-library/3.5/tibble’
Warning in install.packages :
installation of package ‘tibble’ had non-zero exit status
ERROR: dependency ‘tibble’ is not available for package ‘ggplot2’
* removing ‘/mnt/trafficstop/jrleary/R/x86_64-redhat-linux-gnu-library/3.5/ggplot2’
Warning in install.packages :
installation of package ‘ggplot2’ had non-zero exit status

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