react-shiny-template icon indicating copy to clipboard operation
react-shiny-template copied to clipboard

Installation error

Open gexijin opened this issue 1 year ago • 0 comments

Thanks for making this available. This looks like a great idea!!!

On both Windows and Ubuntu, I run into errors to run the npm run install_shiny

On Ubuntu 22.04.2

cd Shiny && Rscript -e "renv::restore()"

Error: failed to create directory at path '/root/.local/share/renv' In addition: Warning message: In dir.create(rownames(info), recursive = TRUE) : cannot create dir '/root/.local', reason 'Permission denied' Traceback (most recent calls last): 19: source("renv/activate.R") 18: withVisible(eval(ei, envir)) 17: eval(ei, envir) 16: eval(ei, envir) 15: local(...) 14: eval.parent(substitute(eval(quote(expr), envir))) 13: eval(expr, p) 12: eval(expr, p) 11: eval(quote(...), new.env()) 10: eval(quote(...), new.env()) 9: renv_bootstrap_load(project, libpath, version) 8: renv::load(project) 7: renv_load_renviron(project) 6: renv_paths_root(".Renviron") 5: Sys.getenv("RENV_PATHS_ROOT", unset = NA) %NA% renv_paths_root_default() 4: renv_paths_root_default() 3: ensure_directory(path) 2: stopf("failed to create directory at path '%s'", rownames(info)) 1: stop(sprintf(fmt, ...), call. = call.) Execution halted


On Windows 10, my error is different: Installing lattice [0.20-41] ... FAILED Error installing package 'lattice':

  • installing to library 'C:/work/react_app/react_shiny/Shiny/renv/staging/1'
  • installing source package 'lattice' ... ** package 'lattice' successfully unpacked and MD5 sums checked ** using staged installation ** libs Error in system(paste(MAKE, p1(paste("-f", shQuote(makefiles))), "compilers"), : 'make' not found
  • removing 'C:/work/react_app/react_shiny/Shiny/renv/staging/1/lattice' Error: install of package 'lattice' failed [error code 1] Traceback (most recent calls last): 13: renv::restore() 12: renv_restore_run_actions(project, diff, current, lockfile, rebuild) 11: renv_install(records) 10: renv_install_staged(records) 9: renv_install_default(records) 8: handler(package, renv_install_impl(record)) 7: renv_install_impl(record) 6: withCallingHandlers(renv_install_package_local(record), error = function(e) { vwritef("\tFAILED") writef(e$output) }) 5: renv_install_package_local(record) 4: renv_install_package_local_impl(package, path) 3: r_cmd_install(package, path) 2: r_exec_error(package, output, "install", status) 1: stop(error) Execution halted

gexijin avatar Sep 30 '23 20:09 gexijin