Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
brownag committed Nov 30, 2023
1 parent 25ab739 commit 958f36a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
12 changes: 5 additions & 7 deletions R/create_PLANTS.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,14 @@
#
#' Create PLANTS Dataset
#'
#' @param ... Arguments to `create_*()` function. Only `outpath` supported at this time.
#' @return TRUE if successful
#' @param ... Arguments to `parse_PLANTS()` function. Only `outpath` supported at this time.
#' @return `TRUE` if successful
#' @export
#' @importFrom data.table fread
create_PLANTS <- function(...) {

args <- list(...)
if (!is.null(args[["outpath"]])) {
outpath <- args[["outpath"]]
}
parse_PLANTS(...)
}
parse_PLANTS <- function(outpath = "inst/extdata", ...) {

x <- data.table::fread('https://plants.usda.gov/assets/docs/CompletePLANTSList/plantlst.txt')

Expand Down
4 changes: 2 additions & 2 deletions man/create_PLANTS.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 958f36a

Please sign in to comment.