Title: | NodeJS for R |
---|---|
Description: | Self-contained node JS for R. |
Authors: | Ben Raymond [aut, cre], Adrien Ickowicz [aut] |
Maintainer: | Ben Raymond <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.0.5 |
Built: | 2024-12-13 03:11:23 UTC |
Source: | https://github.com/scienceuntangled/noder |
If npm
can already be seen by the system, the system path will not be changed. Otherwise, the system path will be prepended with the node/npm path.
nr_add_node_path()
nr_add_node_path()
TRUE
on success, invisibly
These functions call sys::exec_wait()
, sys::exec_background()
, or sys::exec_internal()
, using the noder
-installed node executable as the cmd
argument.
nr_exec_wait(...) nr_exec_internal(...) nr_exec_background(...)
nr_exec_wait(...) nr_exec_internal(...) nr_exec_background(...)
... |
: as for |
As for sys::exec_wait()
, sys::exec_background()
, sys::exec_internal()
nr_exec_wait("--version")
nr_exec_wait("--version")
This is a helper function to install node. The node binaries will be downloaded from https://nodejs.org/en/download/ and saved to your user appdata directory.
nr_install_node(version = "LTS", bits, force = FALSE)
nr_install_node(version = "LTS", bits, force = FALSE)
version |
string: "LTS" (long-term support, recommended) or "current" |
bits |
integer: 32 or 64, for 32- or 64-bit install. If missing or |
force |
logical: force reinstallation if node already exists |
the path to the installed executable
https://nodejs.org/en/download/
## Not run: nr_install_node() ## End(Not run)
## Not run: nr_install_node() ## End(Not run)
The path to the node executable
nr_node_exe()
nr_node_exe()
The path to the executable, or NULL
if not found
nr_node_exe()
nr_node_exe()