-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Labels
Description
I would like to have an easier way to install devel version of data.table.
I have no problem with installing at all, but in some cases it would be useful.
I have data.table devel snapshots in my fork of data.table and it works perfectly fine, but when publishing a blog post I would prefer to use devel data.table provided by Rdatatable, not jangorecki.
I need devel cause I want to benchmark some of the features added in devel, like dt[, .SD[val], grp].
Full recipe for creating drat data.table with devel snapshot as source package, starting in data.table git dir, and requires drat package installed to create repo.
git checkout master # ensure you are on master
git status # ensure no uncommitted changes and latest commit should already pass the CI tests
cd ..
R CMD build data.table --no-build-vignettes --no-manual
cd data.table
git checkout --orphan gh-pages
git rm -rf .
rm '.gitignore'
cd ..
Rscript -e 'drat::insertPackage("data.table_1.9.7.tar.gz","data.table")'
cd data.table
git status
git add src
git status
git commit -m 'latest devel snapshot'
git push origin gh-pagesand a way to use it
# installing development snapshot having all deps already
install.packages("data.table", repos = "https://rdatatable.github.io/data.table")
# installing development snapshot and all deps
install.packages("data.table", repos = paste0("https://", c("rdatatable.github.io/data.table", "cran.rstudio.com")))
# another ways
options(repos = c(getOption("repos"), "https://rdatatable.github.io/data.table"))
install.packages("data.table")
# or update all pkgs including data.table
update.packages()