install.packages

restore all R packages after installing a new version of R?

不打扰是莪最后的温柔 提交于 2021-02-08 08:40:22
问题 When you are doing an R update, what is the best approach to re-installing and updating all packages that were already installed on your previous R version when some of your packages are on CRAN but the rest are on github (or other sources)? In the past, I've followed this approach: Open old version of R (e.g. R 3.6 ) and make a copy of all installed packages: installed <- as.data.frame(installed.packages()) #save a copy write.csv(installed, 'previously_installed.csv') Then install and open

Install R packages using docker file

六眼飞鱼酱① 提交于 2020-05-14 14:42:50
问题 I have installed R using below line in my docker file. Please suggest how do I specify now packages to be installed in my docker file. RUN yum -y install R-core R-devel I'm doing something like this: RUN R -e "install.packages('methods',dependencies=TRUE, repos='http://cran.rstudio.com/')"\ && R -e "install.packages('jsonlite',dependencies=TRUE, repos='http://cran.rstudio.com/')" \ && R -e "install.packages('tseries',dependencies=TRUE, repos='http://cran.rstudio.com/')" Is this the right way

Install R packages using docker file

女生的网名这么多〃 提交于 2020-05-14 14:42:34
问题 I have installed R using below line in my docker file. Please suggest how do I specify now packages to be installed in my docker file. RUN yum -y install R-core R-devel I'm doing something like this: RUN R -e "install.packages('methods',dependencies=TRUE, repos='http://cran.rstudio.com/')"\ && R -e "install.packages('jsonlite',dependencies=TRUE, repos='http://cran.rstudio.com/')" \ && R -e "install.packages('tseries',dependencies=TRUE, repos='http://cran.rstudio.com/')" Is this the right way

Installing private package from Github Package registry fails with not found/not authorized

為{幸葍}努か 提交于 2020-05-13 06:41:13
问题 I created and published a private Github package. Trying to install it with yarn at first, I face the following issue: Whether I try with yarn or npm, it cannot find the package at all although following the exact steps documented by Github (https://help.github.com/en/github/managing-packages-with-github-package-registry/configuring-npm-for-use-with-github-package-registry). My .yarnrc : registry "https://npm.pkg.github.com/OWNER" With yarn, it continuously tries to look for the package at

R - Unable to install R packages - Cannot open the connection

て烟熏妆下的殇ゞ 提交于 2020-05-04 05:36:08
问题 Before you mark this as duplicate, I wish to say that I already referred the related post 1,post 2, 3, 4 I am trying to install the dplyr and stringr package but i get the below error Warning in install.packages : downloaded length 139264 != reported length 3227450 Warning in install.packages : error 1 in extracting from zip file Warning in install.packages : cannot open compressed file 'dplyr/DESCRIPTION', probable reason 'No such file or directory' Error in install.packages : cannot open

R - Unable to install R packages - Cannot open the connection

泄露秘密 提交于 2020-05-04 05:34:51
问题 Before you mark this as duplicate, I wish to say that I already referred the related post 1,post 2, 3, 4 I am trying to install the dplyr and stringr package but i get the below error Warning in install.packages : downloaded length 139264 != reported length 3227450 Warning in install.packages : error 1 in extracting from zip file Warning in install.packages : cannot open compressed file 'dplyr/DESCRIPTION', probable reason 'No such file or directory' Error in install.packages : cannot open

RDCOMClient installation trouble on R-3.6

风流意气都作罢 提交于 2020-03-22 06:59:32
问题 I cannot install RDCOMClient, using R-3.6 Some background: RDCOMClient works in my R-3.51 instance, and I need to use 3.6, and I need to use RDCOMClient to interact with my desktop's Outlook. mailR and sendmailR are not currently an option. Thing's I've tried: >install.packages("RDCOMClient") Installing package into ‘C:/Users/<user>/Documents/R/win-library/3.6’ (as ‘lib’ is unspecified) Warning in install.packages : package ‘RDCOMClient’ is not available (for R version 3.6.0) > library(

Executing R scripts during package installation

牧云@^-^@ 提交于 2020-02-03 04:52:07
问题 Hopefully this has a straightforward answer, but I haven't been able to find it as yet. I'm writing an R package, and when installed on Windows I want it to execute a script that searches for a system file i.e. list.files(path = "C:/Program Files/, ...) and then saves that path to the package directory as a text file for later reference. I tried saving the script as src/install.libs.R but that stopped my package from building. In case there is an alternative solution, I'm trying to save the

R Package installed but cannot be loaded?

白昼怎懂夜的黑 提交于 2020-01-24 13:33:59
问题 I installed the "digest" package in R. > install.packages("digest") Installing package into ‘C:/Users/user/Documents/R/win-library/3.3’ (as ‘lib’ is unspecified) trying URL 'https://mran.microsoft.com/snapshot/2017-03-15/bin/windows/contrib/3.3/digest_0.6.12.zip' Content type 'application/zip' length 172746 bytes (168 KB) downloaded 168 KB package ‘digest’ successfully unpacked and MD5 sums checked Warning in install.packages : cannot remove prior installation of package ‘digest’ The