Skip to content

Commit

Permalink
try $R_HOME
Browse files Browse the repository at this point in the history
  • Loading branch information
tdhock committed Apr 17, 2024
1 parent 7b9f55c commit 177ca71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/versions.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 177ca71

Please sign in to comment.