From e864fdf10af43053676aa10e9a4c6384f97d61a4 Mon Sep 17 00:00:00 2001 From: Kreutzmann Date: Tue, 20 Mar 2018 14:44:40 +0100 Subject: [PATCH] tools --- .Rbuildignore | 3 +++ .Rprofile | 3 +++ .gitignore | 3 ++- Spielplatz/update_packages.R | 4 +--- 4 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 .Rprofile diff --git a/.Rbuildignore b/.Rbuildignore index 9273e0ff..3aef33ea 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -5,5 +5,8 @@ ^.*\.xlsx$ cran-comments.md Spielplatz +packrat revdep ^revdep$ +^packrat/ +^\.Rprofile$ diff --git a/.Rprofile b/.Rprofile new file mode 100644 index 00000000..916dba48 --- /dev/null +++ b/.Rprofile @@ -0,0 +1,3 @@ +#### -- Packrat Autoloader (version 0.4.9-1) -- #### +source("packrat/init.R") +#### -- End Packrat Autoloader -- #### diff --git a/.gitignore b/.gitignore index 408f3b9c..d2911b01 100644 --- a/.gitignore +++ b/.gitignore @@ -19,4 +19,5 @@ ods_output_all_sumDom.ods ods_output_all_sumNorm.ods ods_output_all_sumObs.ods ods_output_all_sumTrafo.ods -Spielplatz/RepLib \ No newline at end of file +Spielplatz/RepLib +packrat/lib*/ diff --git a/Spielplatz/update_packages.R b/Spielplatz/update_packages.R index 8a03a765..b68c725f 100644 --- a/Spielplatz/update_packages.R +++ b/Spielplatz/update_packages.R @@ -10,11 +10,9 @@ old.packages() # Update all packages update.packages() - # Add a new libPath that only contains dependencies of emdi and their # dependencies -.libPaths("./Spielplatz/RepLib") -.libPaths() + install.packages("emdi", lib = .libPaths()[1]) install.packages("readODS", lib = .libPaths()[1]) devtools::install_github("soerenpannier/emdi")