diff --git a/R/site-methods.R b/R/site-methods.R index f9f41fa..4294cb0 100644 --- a/R/site-methods.R +++ b/R/site-methods.R @@ -503,7 +503,8 @@ setMethod(f = "cite_data", #' @importFrom purrr map #' @importFrom dplyr bind_rows full_join select arrange filter #' @returns `data.frame` object with citation information. -#' @examples { +#' @examples +#' \donttest{ #' ds <- get_datasets(1) #' cite_data(ds) #' } diff --git a/man/cite_data-site-method.Rd b/man/cite_data-site-method.Rd index 8fc2765..f1023c4 100644 --- a/man/cite_data-site-method.Rd +++ b/man/cite_data-site-method.Rd @@ -18,7 +18,7 @@ Given complete dataset objects in Neotoma (must have used citation for the record, including the dataset DOI. } \examples{ -{ +\donttest{ ds <- get_datasets(1) cite_data(ds) } diff --git a/vignettes/neotoma2-package.Rmd b/vignettes/neotoma2-package.Rmd index 191024d..16f47d3 100644 --- a/vignettes/neotoma2-package.Rmd +++ b/vignettes/neotoma2-package.Rmd @@ -137,7 +137,7 @@ alex <- get_sites(sitename = "Alexander Lake") alex[[1]]$siteid ``` -The elements within a `site` are the same as the defined columns within the Neotoma [`ndb.sites`](https://open.neotomadb.org/dbschema/tables/sites.html) table, with the exception of the `collunits` slot, which contains the collection units and associated datasets that are found within a site. You can see all the `site` slots using the `names()` function. You can select individual elements of a `site`, and you can assign values to these parameters: +The elements within a `site` are the same as the defined columns within the Neotoma [`ndb.sites`](https://open.neotomadb.org/dbschema/ndb/tables/sites.html) table, with the exception of the `collunits` slot, which contains the collection units and associated datasets that are found within a site. You can see all the `site` slots using the `names()` function. You can select individual elements of a `site`, and you can assign values to these parameters: ```{r showallNamesSite} names(alex[[1]]) @@ -325,7 +325,7 @@ In this code chunk we define the bounding polygon for our sites, filter by time ## Publications -Many Neotoma records have publications associated with them. The `publication` object (and the `publications` collection) provide the opportunity to do this. The [`publication`](https://open.neotomadb.org/dbschema/tables/publications.html) table in Neotoma contains an extensive number of fields. The methods for `publications` in the `neotoma2` package provide us with tools to retrieve publication data from Neotoma, to set and manipulate publication data locally, and to retrieve publication data from external sources (e.g., using a DOI). +Many Neotoma records have publications associated with them. The `publication` object (and the `publications` collection) provide the opportunity to do this. The [`publication`](https://open.neotomadb.org/dbschema/ndb/tables/publications.html) table in Neotoma contains an extensive number of fields. The methods for `publications` in the `neotoma2` package provide us with tools to retrieve publication data from Neotoma, to set and manipulate publication data locally, and to retrieve publication data from external sources (e.g., using a DOI). ### `get_publications()` from Neotoma