Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

Commit

Permalink
less examples
Browse files Browse the repository at this point in the history
  • Loading branch information
sckott committed Jan 25, 2018
1 parent f286eb7 commit 1b32e8f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/dwca.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#' won't invoke the caching route, but will go directly to the file/directory.
#'
#' @examples
#' \dontrun{
#' # set up a temporary directory for the example
#' dwca_cache$cache_path_set(path = "finch", type = "tempdir")
#'
Expand All @@ -31,7 +32,6 @@
#' x$dataset_meta[[1]]
#' x$data
#'
#' \dontrun{
#' # Read data
#' (x <- dwca_read(dir, read=TRUE))
#' head(x$data[[1]])
Expand Down
2 changes: 2 additions & 0 deletions R/simple.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#' position rather than name since duplicate names are allowed in chunks.
#'
#' @examples
#' \dontrun{
#' # SimpleDarwinRecordSet examples
#' file <- system.file("examples", "example_simple.xml", package = "finch")
#' simple_read(file)
Expand All @@ -39,6 +40,7 @@
#' res$locations
#' ## chunks, the first one
#' res$chunks[[1]]
#' }
simple_read <- function(file) {
if (!file.exists(file)) stop("file does not exist", call. = FALSE)
xml <- read_xml(file)
Expand Down
2 changes: 1 addition & 1 deletion man/dwca_read.Rd

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

2 changes: 2 additions & 0 deletions man/simple_read.Rd

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

0 comments on commit 1b32e8f

Please sign in to comment.