From 41866970d621a341cba22806a54cb665701542a1 Mon Sep 17 00:00:00 2001 From: Ole Tange Date: Sat, 22 Jun 2019 22:01:11 +0200 Subject: [PATCH] R: Autoinstall plyr and data.table if not already installed. --- src/optional/R/Makefile | 4 ++++ src/optional/R/gnuparallel/MD5 | 4 ++-- src/optional/R/gnuparallel/NAMESPACE | 2 ++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/optional/R/Makefile b/src/optional/R/Makefile index bba213db..6fbbaa32 100644 --- a/src/optional/R/Makefile +++ b/src/optional/R/Makefile @@ -1,4 +1,8 @@ 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 R CMD check --as-cran gnuparallel R CMD build gnuparallel diff --git a/src/optional/R/gnuparallel/MD5 b/src/optional/R/gnuparallel/MD5 index aa9b6d86..c89d1777 100644 --- a/src/optional/R/gnuparallel/MD5 +++ b/src/optional/R/gnuparallel/MD5 @@ -1,4 +1,4 @@ -c521738aeecfa8e237500f4a3263143e DESCRIPTION -d008be14407ccaa1070b98ed7d91c123 NAMESPACE +1687988e405e42d2da3978c8456fa014 DESCRIPTION +c9aa60a23c3248ca19b99dce2db2123b NAMESPACE beb1ce7a813ec211acd651e66a397a7b R/gnuparallel.R cb2aec4860699d6819f9cc18e67b8df4 man/gnuparallel-package.Rd diff --git a/src/optional/R/gnuparallel/NAMESPACE b/src/optional/R/gnuparallel/NAMESPACE index 32dc4bb2..229dbb91 100644 --- a/src/optional/R/gnuparallel/NAMESPACE +++ b/src/optional/R/gnuparallel/NAMESPACE @@ -1,6 +1,8 @@ +importFrom("utils", "read.table") export(gnu.parallel.filenames) export(gnu.parallel.load) export(gnu.parallel.load.lines) export(gnu.parallel.load.data.frame) export(gnu.parallel.load.data.table) +