From 177ca71b323e6efc66e44d0ee5f025a057c51b5d Mon Sep 17 00:00:00 2001 From: Toby Dylan Hocking Date: Tue, 16 Apr 2024 23:40:31 -0700 Subject: [PATCH] try $R_HOME --- R/versions.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/versions.R b/R/versions.R index 29ab99f..4790535 100644 --- a/R/versions.R +++ b/R/versions.R @@ -79,7 +79,7 @@ atime_versions_install <- function(Package, pkg.path, new.Package.vec, sha.vec, new.Package=new.Package, sha=sha, new.pkg.path=sha.path) - INSTALL.cmd <- paste("R CMD INSTALL", sha.path) + INSTALL.cmd <- paste('"$R_HOME/bin/R" CMD INSTALL', sha.path) status.int <- system(INSTALL.cmd) if(status.int != 0){ stop(INSTALL.cmd, " returned error status code ", status.int)