From 70a35dcf0c145bc2b882777f92ac4eae4f980d6d Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Wed, 31 Jul 2024 15:37:24 +0200 Subject: [PATCH] fixed install_node export --- NAMESPACE | 1 + R/node.R | 2 +- man/install_node.Rd | 4 +--- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/NAMESPACE b/NAMESPACE index 45a9f91..3c63ade 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -6,6 +6,7 @@ export(exec_flowr) export(exec_node_command) export(get_default_node_base_dir) export(install_flowr) +export(install_node) export(request_file_analysis) export(request_repl) export(request_slice) diff --git a/R/node.R b/R/node.R index 93e16b7..d71ffb3 100644 --- a/R/node.R +++ b/R/node.R @@ -4,7 +4,7 @@ #' @param verbose Whether to print out information about the commands being executed. #' @param base_dir The base directory to install Node in. By default, this uses the package's installation directory through [get_default_node_base_dir()]. #' -#' #' @export +#' @export install_node <- function(node_ver, verbose = FALSE, base_dir = get_default_node_base_dir()) { os <- get_os() arch <- switch(Sys.info()[["machine"]], diff --git a/man/install_node.Rd b/man/install_node.Rd index 379f745..8526c67 100644 --- a/man/install_node.Rd +++ b/man/install_node.Rd @@ -11,9 +11,7 @@ install_node(node_ver, verbose = FALSE, base_dir = get_default_node_base_dir()) \item{verbose}{Whether to print out information about the commands being executed.} -\item{base_dir}{The base directory to install Node in. By default, this uses the package's installation directory through \code{\link[=get_default_node_base_dir]{get_default_node_base_dir()}}. - -#' @export} +\item{base_dir}{The base directory to install Node in. By default, this uses the package's installation directory through \code{\link[=get_default_node_base_dir]{get_default_node_base_dir()}}.} } \description{ Installs the given version of Node.js on the local system in the given directory.