Skip to content

Commit 8312dd7

Browse files
author
Florian Schneider
committed
dontrun heavy examples
1 parent ebb8104 commit 8312dd7

8 files changed

+25
-13
lines changed

R/as.traitdata.R

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,10 @@
7070
#' @importFrom reshape2 melt
7171
#'
7272
#' @examples
73-
#'
73+
#'
74+
#' \dontrun{
7475
#' # species-trait matrix:
75-
#'
76+
#'
7677
#' pulldata("carabids")
7778
#'
7879
#' dataset1 <- as.traitdata(carabids,
@@ -83,7 +84,7 @@
8384
#' )
8485
#'
8586
#' # occurrence table:
86-
#'
87+
#'
8788
#' pulldata("heteroptera_raw")
8889
#'
8990
#' dataset2 <- as.traitdata(heteroptera_raw,
@@ -103,7 +104,7 @@
103104
#' license = "http://creativecommons.org/publicdomain/zero/1.0/"
104105
#' )
105106
#' )
106-
#'
107+
#' }
107108
#'
108109

109110
as.traitdata <- function(x,

R/mutate.traitdata.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
#' @importFrom plyr rbind.fill
3434
#'
3535
#' @examples
36-
#'
36+
#'
37+
#' \dontrun{
3738
#' pulldata("arthropodtraits")
3839
#' dataset3 <- as.traitdata(arthropodtraits,
3940
#' taxa = "SpeciesID",
@@ -56,7 +57,7 @@
5657
#' head(updated[updated$traitName == "predator",])
5758
#'
5859
#' levels(updated$traitName)
59-
#'
60+
#' }
6061
#'
6162
#' ##
6263
#'

R/standardize.R

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@
4242
#'
4343
#'
4444
#' @examples
45-
#'
45+
#'
46+
#' \dontrun{
47+
#'
4648
#' pulldata("carabids")
4749
#'
4850
#' dataset1 <- as.traitdata(carabids,
@@ -56,9 +58,9 @@
5658
#' license = "http://creativecommons.org/publicdomain/zero/1.0/"
5759
#' )
5860
#' )
59-
#'
60-
#' dataset1Std <- standardize_taxa(dataset1)
6161
#'
62+
#' dataset1Std <- standardize_taxa(dataset1)
63+
#' }
6264
standardize_taxa <- function(x,
6365
method = get_gbif_taxonomy,
6466
method_options = c(subspecies = TRUE,

R/thesaurus.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,14 @@
5252
#' # provide traitlist from remote archive with renaming
5353
#' # (pulls from https://github.com/EcologicalTraitData/TraitDataList)
5454
#'
55+
#' \dontrun{
5556
#' traits1 <- as.thesaurus(read.csv("https://git.io/fpsj5"),
5657
#' replace = c(traitID = "identifier",
5758
#' traitName = "trait",
5859
#' traitUnit = "expectedUnit",
5960
#' Comments = "comments")
6061
#' )
62+
#' }
6163

6264
as.thesaurus <- function(...,
6365
replace = NULL

man/as.thesaurus.Rd

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/as.traitdata.Rd

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/mutate.traitdata.Rd

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/standardize_taxa.Rd

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)