Unable to access user library in R - "Non-Zero Exit Status" warning

When I tried to install packages on my work laptop, I got an error. I was told that I have full privileges with a laptop, so there should be no blocks.

I think this could be due to the file path to the library, where do the installed packages go? I use both the latest version of R and R Studio, and the 64-bit version, and using the Canada U of T CRAN site.

This is what happens when I try to install plyrusing

install.packages("plyr")

also sets the dependency "Rcpp Packages, which are only available in source form and may need to be compiled from C / C ++ / Fortran: 'Rcpp' plyr

And when I try to install ggplot2, here is a long error message:

ERROR: dependency 'stringi' is not available for package 'stringr' * delete 'C: /RPackages/R-3.2.3/library/stringr' Warning in packages install.packages: running command "C: / RPACKA ~ 1 / R-32 ~ 1.3 / bin / x64 / R "CMD INSTALL -l" C: \ RPackages \ R-3.2.3 \ library "C: \ Users \ MICHAE ~ 1. COL \ AppData \ Local \ Temp \ RtmpGs24zA / loaded_packages / stringr_1. 0.0.tar.gz 'has the status 1 Warning in install.packages packages: installing the package' stringr had a non-zero exit status ERROR: "dependency color space" is not available for the munsell package * uninstall 'C: /RPackages/R-3.2.3 / library / munsell 'Warning in install.packages packages: running command "C: /RPACKA~1/R-32~1.3/bin/x64/R" CMD INSTALL -l "C: \ RPackages \ R-3.2.3 \ library "C: \ Us ers \ MICHAE ~ 1.COL \ AppData \ Local \ Temp \ RtmpGs24zA / loaded_packages / munsell_0.4.3.tar.gz 'has status 1 Warning in install.packages packages: installing the package "munsell" had a non-zero exit status ERROR: "dependency digest", "plyr", "reshape2", "scales" are not available for the package "ggplot2" * delete 'C: /RPackages/R-3.2.3/library/ggplot2' Warning in packages install.packages: running command "C: / RPACKA ~ 1 / R- 32 ~ 1.3 / bin / x64 / R "CMD INSTALL -l" C: \ RPackages \ R-3.2.3 \ library "C: \ Users \ MICHAE ~ 1. COL \ AppData \ Local \ Temp \ RtmpGs24zA / loaded_packages / ggplot2_2 .0.0.tar.gz has the status 1 Warning in install.packages packages: installing the ggplot2 package had a non-zero exit status The downloaded source packages are in " C: \ Users \ michael.colangelo \ AppData \ Local \ Temp \ RtmpGs24zA \ downloaded_packages

" "? ? > appData, , , . ?

+5
7

, . , , . , , dependencies=TRUE; :

install.packages("ggplot2", dependencies=TRUE)
+10

, mikes . , R. . . R R, :

sudo -i R

r, , root, .

+1

R3.3.3 (Mac) R3.5.0 (). , devtools github " ", , C50 https://github.com/topepo/C5.0:

require("devtools")
install_github("topepo/C5.0")

, , .

+1

RCpp Rtools. Rtools.

, (WIN10, R-3.5.1) Rtools C:\Rtools. , R .

0

Resources/library.

, ( Command + R ), ""> "".

(: , ):

csrutil disable

macOS, > > > > /.

Mac, ,

csrutil enable

, , , , csrutil, , , , - , .

0

tidyverse , .

install.packages("tidyverse")
0

, g++.

$sudo apt install g++

-3

Source: https://habr.com/ru/post/1619355/


All Articles