Installing a local package that is not .tar.gz

I am working on a script that creates a package in the current directory (using pdInfoBuilder from BioConductor), and I would like to install it while the script is running. install.packages()with repo = NULL seems like an obvious choice, but it seems to be only with the exception of package directories loaded in caching and gzipped. Is there a way to override this since the function create.pkg()does not create * .tar.gz? I am currently using:

R CMD INSTALL package.name

Thanks, Vince

+3
source share
2 answers

If this is the source file, then use install.packages () and set repos = NULL:

install.packages(file_name_and_path, repos = NULL, type="source")

See this related question: How to install package R from source?

+8

.tgz, ? , , R CMD INSTALL dirname, . install.packages() R CMD INSTALL , , .. .

+3

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


All Articles