Closed MichaelChirico closed 7 years ago
install.packages
works for local repos too, just mirror repo from gh-pages
.
git clone --branch gh-pages https://github.com/Rdatatable/data.table.git
Rscript -e 'install.packages("data.table", repos=file.path("file:",normalizePath("data.table")))'
but I'm offline so I can't git clone either... but this is in the right direction. should be able to git clone on a different machine then flash drive.
On Nov 1, 2016 12:21 PM, "Jan Gorecki" notifications@github.com wrote:
install.packages works for local archives too, just mirror repo from gh-pages.
git clone --branch gh-pages https://github.com/Rdatatable/data.table.git Rscript -e 'install.packages("data.table", repos=file.path("file:",normalizePath("data.table")))'
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Rdatatable/data.table/issues/1896#issuecomment-257612679, or mute the thread https://github.com/notifications/unsubscribe-auth/AHQQdaz52l50waRk91VfL-ePpcWJ2v15ks5q52cjgaJpZM4KmOIE .
If you have source on disk, you can do everything offline.
R CMD build data.table
R CMD check $(ls -1t data.table_*.tar.gz | head -n 1)
mkdir -p cran/src/contrib
mv $(ls -1t data.table_*.tar.gz | head -n 1) cran/src/contrib/.
Rscript -e 'tools::write_PACKAGES(contrib.url("cran"))'
then install from it
Rscript -e 'install.packages("data.table", repos=file.path("file:",normalizePath("cran")))'
of course you can always install from tar.gz sources, R CMD INSTALL $(ls -1t data.table_*.tar.gz | head -n 1)
and install.packages("tar.gz.filename", type=NULL)
Yes, exactly. My question was mainly about how to get the source onto disk, since I didn't know where online I could find the repository.
This should work. Thanks!
I'd like to install the latest successful
data.table
build offline (so I don't have access to theinstall.packages
approach)... is there a way to do so?