R: Autoinstall plyr and data.table if not already installed.

This commit is contained in:
Ole Tange 2019-06-22 22:01:11 +02:00
parent f8ce632157
commit 41866970d6
3 changed files with 8 additions and 2 deletions

View file

@ -1,4 +1,8 @@
all: all:
# Install plyr if not installed
Rscript -e 'usePackage <- function(p) { if (!is.element(p, installed.packages()[,1])) { install.packages(p, dep = TRUE) }; require(p, character.only = TRUE) }; usePackage("plyr");'
# Install data.table if not installed
Rscript -e 'usePackage <- function(p) { if (!is.element(p, installed.packages()[,1])) { install.packages(p, dep = TRUE) }; require(p, character.only = TRUE) }; usePackage("data.table");'
cd gnuparallel && md5sum DESCRIPTION NAMESPACE R/gnuparallel.R man/gnuparallel-package.Rd > MD5 cd gnuparallel && md5sum DESCRIPTION NAMESPACE R/gnuparallel.R man/gnuparallel-package.Rd > MD5
R CMD check --as-cran gnuparallel R CMD check --as-cran gnuparallel
R CMD build gnuparallel R CMD build gnuparallel

View file

@ -1,4 +1,4 @@
c521738aeecfa8e237500f4a3263143e DESCRIPTION 1687988e405e42d2da3978c8456fa014 DESCRIPTION
d008be14407ccaa1070b98ed7d91c123 NAMESPACE c9aa60a23c3248ca19b99dce2db2123b NAMESPACE
beb1ce7a813ec211acd651e66a397a7b R/gnuparallel.R beb1ce7a813ec211acd651e66a397a7b R/gnuparallel.R
cb2aec4860699d6819f9cc18e67b8df4 man/gnuparallel-package.Rd cb2aec4860699d6819f9cc18e67b8df4 man/gnuparallel-package.Rd

View file

@ -1,6 +1,8 @@
importFrom("utils", "read.table")
export(gnu.parallel.filenames) export(gnu.parallel.filenames)
export(gnu.parallel.load) export(gnu.parallel.load)
export(gnu.parallel.load.lines) export(gnu.parallel.load.lines)
export(gnu.parallel.load.data.frame) export(gnu.parallel.load.data.frame)
export(gnu.parallel.load.data.table) export(gnu.parallel.load.data.table)