From b8a9e261b4af977c53da00814000351e2414f829 Mon Sep 17 00:00:00 2001 From: Sam Park Date: Tue, 25 Jun 2024 13:36:44 -0400 Subject: [PATCH] address r cmd check errors --- NAMESPACE | 1 + R/pepr.R | 1 + R/utils.R | 3 +-- man/saveProject.Rd | 6 ++---- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/NAMESPACE b/NAMESPACE index f2f0ebd..2c9fb90 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -27,6 +27,7 @@ exportMethods("$") exportMethods("[") exportMethods("[[") import(RCurl) +import(httr) import(pryr) import(stringr) import(yaml) diff --git a/R/pepr.R b/R/pepr.R index 708b37f..bd09605 100644 --- a/R/pepr.R +++ b/R/pepr.R @@ -8,6 +8,7 @@ #' @import yaml #' @import stringr #' @import pryr +#' @import httr #' @importFrom tidyr unnest #' #' @references diff --git a/R/utils.R b/R/utils.R index 8740adf..469e3ad 100644 --- a/R/utils.R +++ b/R/utils.R @@ -479,9 +479,8 @@ fetchPEP = function(registryPath, raw = TRUE) { #' This is a helper that saves a PEP Project to a local output directory #' #' @param project a PEP Project -#' @param projectDir a string for the output directory, defaults to current working directory +#' @param outputDir a string for the output directory, defaults to current working directory #' @param overwrite a boolean for whether to overwrite an existing project at the output directory -#' @param sampleTableIndex a string indicating the sample attribute that is used #' #' @return a boolean, TRUE if the save was successful and FALSE if otherwise #' @export diff --git a/man/saveProject.Rd b/man/saveProject.Rd index 193bb3a..fa04237 100644 --- a/man/saveProject.Rd +++ b/man/saveProject.Rd @@ -9,11 +9,9 @@ saveProject(project = NULL, outputDir = getwd(), overwrite = FALSE) \arguments{ \item{project}{a PEP Project} -\item{overwrite}{a boolean for whether to overwrite an existing project at the output directory} - -\item{projectDir}{a string for the output directory, defaults to current working directory} +\item{outputDir}{a string for the output directory, defaults to current working directory} -\item{sampleTableIndex}{a string indicating the sample attribute that is used} +\item{overwrite}{a boolean for whether to overwrite an existing project at the output directory} } \value{ a boolean, TRUE if the save was successful and FALSE if otherwise