- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
我在 R 上安装包时从未遇到过任何问题,但在 Microsoft R Open 上安装包时我总是遇到问题。例如,我试图安装 tidyverse。我收到了很多错误,如下所列:
> Warning in system(cmd) : error in running command ERROR: compilation
> failed for package ‘colorspace’
> * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/colorspace’
> Warning in install.packages : installation of package ‘colorspace’
> had non-zero exit status
> * installing *source* package ‘mnormt’ ...
> ** package ‘mnormt’ successfully unpacked and MD5 sums checked
> ** libs sh: 1: make: not found Warning in system(cmd) : error in running command ERROR: compilation failed for package ‘mnormt’
> * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/mnormt’ Warning in install.packages : installation of package ‘mnormt’ had
> non-zero exit status
> * installing *source* package ‘fansi’ ...
> ** package ‘fansi’ successfully unpacked and MD5 sums checked
> ** libs sh: 1: make: not found Warning in system(cmd) : error in running command ERROR: compilation failed for package ‘fansi’
> * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/fansi’ Warning in install.packages : installation of package ‘fansi’ had
> non-zero exit status
> * installing *source* package ‘utf8’ ...
> ** package ‘utf8’ successfully unpacked and MD5 sums checked
> ** libs sh: 1: make: not found Warning in system(cmd) : error in running command ERROR: compilation failed for package ‘utf8’
> * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/utf8’ Warning in install.packages : installation of package ‘utf8’ had
> non-zero exit status
> * installing *source* package ‘backports’ ...
> ** package ‘backports’ successfully unpacked and MD5 sums checked
> ** libs sh: 1: make: not found Warning in system(cmd) : error in running command ERROR: compilation failed for package ‘backports’
> * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/backports’ Warning
> in install.packages : installation of package ‘backports’ had
> non-zero exit status
> * installing *source* package ‘xfun’ ...
> ** package ‘xfun’ successfully unpacked and MD5 sums checked
> ** R
> ** inst
> ** byte-compile and prepare package for lazy loading
> ** help
> *** installing help indices
> ** building package indices
> ** installing vignettes
> ** testing if installed package can be loaded
> * DONE (xfun)
> * installing *source* package ‘glue’ ...
> ** package ‘glue’ successfully unpacked and MD5 sums checked
> ** libs sh: 1: make: not found Warning in system(cmd) : error in running command ERROR: compilation failed for package ‘glue’
> * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/glue’ Warning in install.packages : installation of package ‘glue’ had
> non-zero exit status
> * installing *source* package ‘Rcpp’ ...
> ** package ‘Rcpp’ successfully unpacked and MD5 sums checked
> ** libs sh: 1: make: not found Warning in system(cmd) : error in running command ERROR: compilation failed for package ‘Rcpp’
> * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/Rcpp’ Warning in install.packages : installation of package ‘Rcpp’ had
> non-zero exit status
> * installing *source* package ‘digest’ ...
> ** package ‘digest’ successfully unpacked and MD5 sums checked
> ** libs sh: 1: make: not found Warning in system(cmd) : error in running command ERROR: compilation failed for package ‘digest’
> * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/digest’ Warning in install.packages : installation of package ‘digest’ had
> non-zero exit status
> * installing *source* package ‘lazyeval’ ...
> ** package ‘lazyeval’ successfully unpacked and MD5 sums checked
> ** libs sh: 1: make: not found Warning in system(cmd) : error in running command ERROR: compilation failed for package ‘lazyeval’
> * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/lazyeval’ Warning
> in install.packages : installation of package ‘lazyeval’ had
> non-zero exit status
> * installing *source* package ‘mime’ ...
> ** package ‘mime’ successfully unpacked and MD5 sums checked
> ** libs sh: 1: make: not found Warning in system(cmd) : error in running command ERROR: compilation failed for package ‘mime’
> * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/mime’ Warning in install.packages : installation of package ‘mime’ had
> non-zero exit status
> * installing *source* package ‘openssl’ ...
> ** package ‘openssl’ successfully unpacked and MD5 sums checked /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1: eval: make: not
> found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1: eval: make:
> not found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1: eval:
> make: not found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1:
> eval: make: not found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config:
> 1: eval: make: not found
> /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1: eval: make: not
> found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1: eval: make:
> not found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1: eval:
> make: not found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1:
> eval: make: not found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config:
> 1: eval: make: not found
> /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1: eval: make: not
> found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1: eval: make:
> not found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1: eval:
> make: not found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1:
> eval: make: not found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config:
> 1: eval: make: not found
> /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1: eval: make: not
> found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1: eval: make:
> not found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1: eval:
> make: not found Using PKG_CFLAGS= ------------------------- ANTICONF
> ERROR --------------------------- Configuration failed because
> openssl was not found. Try installing: * deb: libssl-dev (Debian,
> Ubuntu, etc)
> * rpm: openssl-devel (Fedora, CentOS, RHEL)
> * csw: libssl_dev (Solaris)
> * brew: openssl@1.1 (Mac OSX) If openssl is already installed, check that 'pkg-config' is in your PATH and PKG_CONFIG_PATH contains a
> openssl.pc file. If pkg-config is unavailable you can set INCLUDE_DIR
> and LIB_DIR manually via: R CMD INSTALL
> --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
> -------------------------------------------------------------------- ERROR: configuration failed for package ‘openssl’
> * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/openssl’ Warning
> in install.packages : installation of package ‘openssl’ had non-zero
> exit status
> * installing *source* package ‘clipr’ ...
> ** package ‘clipr’ successfully unpacked and MD5 sums checked
> ** R
> ** inst
> ** byte-compile and prepare package for lazy loading
> ** help
> *** installing help indices
> ** building package indices
> ** testing if installed package can be loaded
> * DONE (clipr)
> * installing *source* package ‘stringi’ ...
> ** package ‘stringi’ successfully unpacked and MD5 sums checked checking for R_HOME... /opt/microsoft/ropen/3.5.0/lib64/R checking for
> R... /opt/microsoft/ropen/3.5.0/lib64/R/bin/R checking for
> endianness... little checking for R >= 3.1.0 for C++11 use... yes
> checking for R < 3.4.0 for CXX1X flag use... no checking for cat...
> /bin/cat /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1: eval: make:
> not found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1: eval:
> make: not found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1:
> eval: make: not found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config:
> 1: eval: make: not found
> /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1: eval: make: not
> found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1: eval: make:
> not found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1: eval:
> make: not found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1:
> eval: make: not found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config:
> 1: eval: make: not found
> /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1: eval: make: not
> found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1: eval: make:
> not found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1: eval:
> make: not found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1:
> eval: make: not found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config:
> 1: eval: make: not found
> /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1: eval: make: not
> found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1: eval: make:
> not found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1: eval:
> make: not found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1:
> eval: make: not found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config:
> 1: eval: make: not found
> /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1: eval: make: not
> found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1: eval: make:
> not found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1: eval:
> make: not found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1:
> eval: make: not found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config:
> 1: eval: make: not found
> /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1: eval: make: not
> found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1: eval: make:
> not found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1: eval:
> make: not found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1:
> eval: make: not found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config:
> 1: eval: make: not found
> /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1: eval: make: not
> found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1: eval: make:
> not found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1: eval:
> make: not found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1:
> eval: make: not found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config:
> 1: eval: make: not found
> /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1: eval: make: not
> found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1: eval: make:
> not found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1: eval:
> make: not found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1:
> eval: make: not found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config:
> 1: eval: make: not found
> /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1: eval: make: not
> found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1: eval: make:
> not found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1: eval:
> make: not found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1:
> eval: make: not found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config:
> 1: eval: make: not found
> /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1: eval: make: not
> found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1: eval: make:
> not found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1: eval:
> make: not found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1:
> eval: make: not found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config:
> 1: eval: make: not found
> /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1: eval: make: not
> found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1: eval: make:
> not found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1: eval:
> make: not found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1:
> eval: make: not found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config:
> 1: eval: make: not found
> /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1: eval: make: not
> found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1: eval: make:
> not found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1: eval:
> make: not found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1:
> eval: make: not found /opt/microsoft/ropen/3.5.0/lib64/R/bin/config:
> 1: eval: make: not found
> /opt/microsoft/ropen/3.5.0/lib64/R/bin/config: 1: eval: make: not
> found checking for local ICUDT_DIR... icu61/data checking for gcc...
> no checking for cc... no checking for cl.exe... no configure: error:
> in `/tmp/RtmpO4zIl6/R.INSTALL1f4a655950bf/stringi': configure: error:
> no acceptable C compiler found in $PATH See `config.log' for more
> details ERROR: configuration failed for package ‘stringi’
> * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/stringi’ Warning
> in install.packages : installation of package ‘stringi’ had non-zero
> exit status
> * installing *source* package ‘yaml’ ...
> ** package ‘yaml’ successfully unpacked and MD5 sums checked
> ** libs sh: 1: make: not found Warning in system(cmd) : error in running command ERROR: compilation failed for package ‘yaml’
> * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/yaml’ Warning in install.packages : installation of package ‘yaml’ had
> non-zero exit status
> * installing *source* package ‘base64enc’ ...
> ** package ‘base64enc’ successfully unpacked and MD5 sums checked
> ** libs sh: 1: make: not found Warning in system(cmd) : error in running command ERROR: compilation failed for package ‘base64enc’
> * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/base64enc’ Warning
> in install.packages : installation of package ‘base64enc’ had
> non-zero exit status
> * installing *source* package ‘rlang’ ...
> ** package ‘rlang’ successfully unpacked and MD5 sums checked
> ** libs sh: 1: make: not found Warning in system(cmd) : error in running command ERROR: compilation failed for package ‘rlang’
> * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/rlang’ Warning in install.packages : installation of package ‘rlang’ had
> non-zero exit status ERROR: dependencies ‘digest’, ‘rlang’ are not
> available for package ‘testthat’
> * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/testthat’ Warning
> in install.packages : installation of package ‘testthat’ had
> non-zero exit status ERROR: dependency ‘colorspace’ is not available
> for package ‘munsell’
> * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/munsell’ Warning
> in install.packages : installation of package ‘munsell’ had non-zero
> exit status ERROR: dependency ‘Rcpp’ is not available for package
> ‘plyr’
> * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/plyr’ Warning in install.packages : installation of package ‘plyr’ had
> non-zero exit status ERROR: dependency ‘mnormt’ is not available for
> package ‘psych’
> * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/psych’ Warning in install.packages : installation of package ‘psych’ had
> non-zero exit status ERROR: dependency ‘Rcpp’ is not available for
> package ‘bindrcpp’
> * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/bindrcpp’ Warning
> in install.packages : installation of package ‘bindrcpp’ had
> non-zero exit status ERROR: dependencies ‘fansi’, ‘rlang’, ‘utf8’ are
> not available for package ‘pillar’
> * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/pillar’ Warning in install.packages : installation of package ‘pillar’ had
> non-zero exit status ERROR: dependency ‘mime’ is not available for
> package ‘markdown’
> * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/markdown’ Warning
> in install.packages : installation of package ‘markdown’ had
> non-zero exit status ERROR: dependencies ‘digest’, ‘Rcpp’ are not
> available for package ‘htmltools’
> * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/htmltools’ Warning
> in install.packages : installation of package ‘htmltools’ had
> non-zero exit status ERROR: dependency ‘backports’ is not available
> for package ‘rprojroot’
> * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/rprojroot’ Warning
> in install.packages : installation of package ‘rprojroot’ had
> non-zero exit status
> * installing *source* package ‘tinytex’ ...
> ** package ‘tinytex’ successfully unpacked and MD5 sums checked
> ** R
> ** byte-compile and prepare package for lazy loading
> ** help
> *** installing help indices
> ** building package indices
> ** testing if installed package can be loaded
> * DONE (tinytex) ERROR: dependency ‘rlang’ is not available for package ‘hms’
> * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/hms’ Warning in install.packages : installation of package ‘hms’ had
> non-zero exit status ERROR: dependencies ‘mime’, ‘openssl’ are not
> available for package ‘httr’
> * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/httr’ Warning in install.packages : installation of package ‘httr’ had
> non-zero exit status ERROR: dependencies ‘glue’, ‘stringi’ are not
> available for package ‘stringr’
> * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/stringr’ Warning
> in install.packages : installation of package ‘stringr’ had non-zero
> exit status ERROR: dependency ‘Rcpp’ is not available for package
> ‘xml2’
> * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/xml2’ Warning in install.packages : installation of package ‘xml2’ had
> non-zero exit status ERROR: dependency ‘testthat’ is not available for
> package ‘processx’
> * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/processx’ Warning
> in install.packages : installation of package ‘processx’ had
> non-zero exit status ERROR: dependencies ‘plyr’, ‘Rcpp’, ‘stringr’ are
> not available for package ‘reshape2’
> * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/reshape2’ Warning
> in install.packages : installation of package ‘reshape2’ had
> non-zero exit status ERROR: dependencies ‘plyr’, ‘munsell’, ‘Rcpp’ are
> not available for package ‘scales’
> * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/scales’ Warning in install.packages : installation of package ‘scales’ had
> non-zero exit status ERROR: dependency ‘stringr’ is not available for
> package ‘selectr’
> * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/selectr’ Warning
> in install.packages : installation of package ‘selectr’ had non-zero
> exit status ERROR: dependency ‘stringr’ is not available for package
> ‘evaluate’
> * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/evaluate’ Warning
> in install.packages : installation of package ‘evaluate’ had
> non-zero exit status ERROR: dependencies ‘stringr’, ‘Rcpp’ are not
> available for package ‘lubridate’
> * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/lubridate’ Warning
> in install.packages : installation of package ‘lubridate’ had
> non-zero exit status ERROR: dependencies ‘pillar’, ‘rlang’ are not
> available for package ‘tibble’
> * removing ‘/home/myFilePath/R/x86_64-pc-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 ‘cellranger’
> * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/cellranger’
> Warning in install.packages : installation of package ‘cellranger’
> had non-zero exit status ERROR: dependency ‘processx’ is not available
> for package ‘callr’
> * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/callr’ Warning in install.packages : installation of package ‘callr’ had
> non-zero exit status ERROR: dependencies ‘rlang’, ‘tibble’ are not
> available for package ‘forcats’
> * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/forcats’ Warning
> in install.packages : installation of package ‘forcats’ had non-zero
> exit status ERROR: dependencies ‘digest’, ‘lazyeval’, ‘plyr’,
> ‘reshape2’, ‘rlang’, ‘scales’, ‘tibble’ are not available for package
> ‘ggplot2’
> * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/ggplot2’ Warning
> in install.packages : installation of package ‘ggplot2’ had non-zero
> exit status ERROR: dependencies ‘rlang’, ‘tibble’ are not available
> for package ‘purrr’
> * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/purrr’ Warning in install.packages : installation of package ‘purrr’ had
> non-zero exit status ERROR: dependencies ‘Rcpp’, ‘tibble’, ‘hms’ are
> not available for package ‘readr’
> * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/readr’ Warning in install.packages : installation of package ‘readr’ had
> non-zero exit status ERROR: dependencies ‘xml2’, ‘httr’, ‘selectr’ are
> not available for package ‘rvest’
> * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/rvest’ Warning in install.packages : installation of package ‘rvest’ had
> non-zero exit status ERROR: dependencies ‘Rcpp’, ‘tibble’, ‘hms’ are
> not available for package ‘feather’
> * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/feather’ Warning
> in install.packages : installation of package ‘feather’ had non-zero
> exit status ERROR: dependencies ‘evaluate’, ‘markdown’, ‘stringr’,
> ‘yaml’ are not available for package ‘knitr’
> * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/knitr’ Warning in install.packages : installation of package ‘knitr’ had
> non-zero exit status ERROR: dependencies ‘glue’, ‘purrr’, ‘rlang’,
> ‘Rcpp’ are not available for package ‘tidyselect’
> * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/tidyselect’
> Warning in install.packages : installation of package ‘tidyselect’
> had non-zero exit status ERROR: dependencies ‘forcats’, ‘hms’, ‘Rcpp’,
> ‘readr’, ‘tibble’ are not available for package ‘haven’
> * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/haven’ Warning in install.packages : installation of package ‘haven’ had
> non-zero exit status ERROR: dependencies ‘cellranger’, ‘Rcpp’,
> ‘tibble’ are not available for package ‘readxl’
> * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/readxl’ Warning in install.packages : installation of package ‘readxl’ had
> non-zero exit status ERROR: dependencies ‘knitr’, ‘yaml’, ‘htmltools’,
> ‘evaluate’, ‘base64enc’, ‘rprojroot’, ‘mime’, ‘stringr’ are not
> available for package ‘rmarkdown’
> * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/rmarkdown’ Warning
> in install.packages : installation of package ‘rmarkdown’ had
> non-zero exit status ERROR: dependencies ‘bindrcpp’, ‘glue’, ‘Rcpp’,
> ‘rlang’, ‘tibble’, ‘tidyselect’ are not available for package ‘dplyr’
> * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/dplyr’ Warning in install.packages : installation of package ‘dplyr’ had
> non-zero exit status ERROR: dependencies ‘callr’, ‘rlang’, ‘rmarkdown’
> are not available for package ‘reprex’
> * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/reprex’ Warning in install.packages : installation of package ‘reprex’ had
> non-zero exit status ERROR: dependencies ‘dplyr’, ‘glue’, ‘purrr’,
> ‘rlang’, ‘tibble’, ‘tidyselect’ are not available for package ‘dbplyr’
> * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/dbplyr’ Warning in install.packages : installation of package ‘dbplyr’ had
> non-zero exit status ERROR: dependencies ‘dplyr’, ‘glue’, ‘purrr’,
> ‘Rcpp’, ‘rlang’, ‘stringi’, ‘tibble’, ‘tidyselect’ are not available
> for package ‘tidyr’
> * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/tidyr’ Warning in install.packages : installation of package ‘tidyr’ had
> non-zero exit status ERROR: dependencies ‘dplyr’, ‘plyr’, ‘psych’,
> ‘reshape2’, ‘stringr’, ‘tidyr’ are not available for package ‘broom’
> * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/broom’ Warning in install.packages : installation of package ‘broom’ had
> non-zero exit status ERROR: dependencies ‘broom’, ‘dplyr’, ‘purrr’,
> ‘tibble’, ‘tidyr’, ‘rlang’ are not available for package ‘modelr’
> * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/modelr’ Warning in install.packages : installation of package ‘modelr’ had
> non-zero exit status ERROR: dependencies ‘broom’, ‘dplyr’, ‘dbplyr’,
> ‘forcats’, ‘ggplot2’, ‘haven’, ‘hms’, ‘httr’, ‘lubridate’, ‘modelr’,
> ‘purrr’, ‘readr’, ‘readxl’, ‘reprex’, ‘rlang’, ‘rvest’, ‘stringr’,
> ‘tibble’, ‘tidyr’, ‘xml2’ are not available for package ‘tidyverse’
> * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/tidyverse’ Warning
> in install.packages : installation of package ‘tidyverse’ had
> non-zero exit status
>
> The downloaded source packages are in
> ‘/tmp/RtmpDGk37A/downloaded_packages’
过去,我的解决方案是放弃并继续使用常规 R,但我想尝试利用 MRO 的多线程。
同样,使用简单的 install.packages("tidyverse")
命令在 R 中有效。在 MRO 中我必须做哪些不同的事情?
最佳答案
这些错误告诉您您没有在 Linux 中构建 R 程序包所必需的工具(make
、gcc
)
libs sh: 1: make: not found
...
no acceptable C compiler found in $PATH
您需要安装 r-base-dev
得到那些
sudo apt-get install r-base-dev
查看更多:
关于r - 在 Microsoft R Open 上安装包失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51351657/
我正在从 Stata 迁移到 R(plm 包),以便进行面板模型计量经济学。在 Stata 中,面板模型(例如随机效应)通常报告组内、组间和整体 R 平方。 I have found plm 随机效应
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 想改进这个问题?将问题更新为 on-topic对于堆栈溢出。 6年前关闭。 Improve this qu
我想要求用户输入整数值列表。用户可以输入单个值或一组多个值,如 1 2 3(spcae 或逗号分隔)然后使用输入的数据进行进一步计算。 我正在使用下面的代码 EXP <- as.integer(rea
当 R 使用分类变量执行回归时,它实际上是虚拟编码。也就是说,省略了一个级别作为基础或引用,并且回归公式包括所有其他级别的虚拟变量。但是,R 选择了哪一个作为引用,以及我如何影响这个选择? 具有四个级
这个问题基本上是我之前问过的问题的延伸:How to only print (adjusted) R-squared of regression model? 我想建立一个线性回归模型来预测具有 15
我在一台安装了多个软件包的 Linux 计算机上安装了 R。现在我正在另一台 Linux 计算机上设置 R。从他们的存储库安装 R 很容易,但我将不得不使用 安装许多包 install.package
我正在阅读 Hadley 的高级 R 编程,当它讨论字符的内存大小时,它说: R has a global string pool. This means that each unique strin
我们可以将 Shiny 代码写在两个单独的文件中,"ui.R"和 "server.R" , 或者我们可以将两个模块写入一个文件 "app.R"并调用函数shinyApp() 这两种方法中的任何一种在性
我正在使用 R 通过 RGP 包进行遗传编程。环境创造了解决问题的功能。我想将这些函数保存在它们自己的 .R 源文件中。我这辈子都想不通怎么办。我尝试过的一种方法是: bf_str = print(b
假设我创建了一个函数“function.r”,在编辑该函数后我必须通过 source('function.r') 重新加载到我的全局环境中。无论如何,每次我进行编辑时,我是否可以避免将其重新加载到我的
例如,test.R 是一个单行文件: $ cat test.R # print('Hello, world!') 我们可以通过Rscript test.R 或R CMD BATCH test.R 来
我知道我可以使用 Rmd 来构建包插图,但想知道是否可以更具体地使用 R Notebooks 来制作包插图。如果是这样,我需要将 R Notebooks 编写为包小插图有什么不同吗?我正在使用最新版本
我正在考虑使用 R 包的共享库进行 R 的站点安装。 多台计算机将访问该库,以便每个人共享相同的设置。 问题是我注意到有时您无法更新包,因为另一个 R 实例正在锁定库。我不能要求每个人都关闭它的 R
我知道如何从命令行启动 R 并执行表达式(例如, R -e 'print("hello")' )或从文件中获取输入(例如, R -f filename.r )。但是,在这两种情况下,R 都会运行文件中
我正在尝试使我当前的项目可重现,因此我正在创建一个主文档(最终是一个 .rmd 文件),用于调用和执行其他几个文档。这样我自己和其他调查员只需要打开和运行一个文件。 当前设置分为三层:主文件、2 个读
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 想改进这个问题?将问题更新为 on-topic对于堆栈溢出。 5年前关闭。 Improve this qu
我的 R 包中有以下描述文件 Package: blah Title: What the Package Does (one line, title case) Version: 0.0.0.9000
有没有办法更有效地编写以下语句?accel 是一个数据框。 accel[[2]]<- accel[[2]]-weighted.mean(accel[[2]]) accel[[3]]<- accel[[
例如,在尝试安装 R 包时 curl作为 usethis 的依赖项: * installing *source* package ‘curl’ ... ** package ‘curl’ succes
我想将一些软件作为一个包共享,但我的一些脚本似乎并不能很自然地作为函数运行。例如,考虑以下代码块,其中“raw.df”是一个包含离散和连续类型变量的数据框。函数“count.unique”和“squa
我是一名优秀的程序员,十分优秀!