From e833114b288653eb5190803f16a280150eaab341 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Thu, 16 May 2019 02:06:02 -0400 Subject: [PATCH] Use noarch R path in kernelspec. Signed-off-by: Elliott Sales de Andrade --- R/installspec.r | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/installspec.r b/R/installspec.r index 5c07fe3..6af23a4 100644 --- a/R/installspec.r +++ b/R/installspec.r @@ -30,7 +30,7 @@ installspec <- function(user = NULL, name = 'ir', displayname = 'R', rprofile = file.copy(srcdir, tmp_name, recursive = TRUE) spec_path <- file.path(tmp_name, 'kernelspec', 'kernel.json') spec <- fromJSON(spec_path) - spec$argv[[1]] <- file.path(R.home('bin'), 'R') + spec$argv[[1]] <- "/usr/bin/R" spec$display_name <- displayname if (!is.null(rprofile)) { spec$env <- list(R_PROFILE_USER = rprofile) -- 2.21.0