Skip to content

Commit

Permalink
Do not run tests or build vignettes in CRAN
Browse files Browse the repository at this point in the history
Since I cannot set credentials in CRAN, I need to disable running tests or building vignettes in CRAN.

Read this for more info: https://cran.r-project.org/web/packages/googlesheets/vignettes/managing-auth-tokens.html#the-making-of-googlesheets.tar.gz-for-cran
  • Loading branch information
juyeongkim committed Dec 18, 2018
1 parent 02e1032 commit 68f3e06
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/testthat.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
library(testthat)
library(DataSpaceR)

test_check("DataSpaceR")
if (identical(tolower(Sys.getenv("NOT_CRAN")), "true")) {
test_check("DataSpaceR")
}
11 changes: 11 additions & 0 deletions vignettes/Intro_to_DataSpaceR.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,17 @@ vignette: >
%\VignetteEncoding{UTF-8}
---

```{r, echo = FALSE, warning=FALSE, message=FALSE}
NOT_CRAN <- identical(tolower(Sys.getenv("NOT_CRAN")), "true")
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
purl = NOT_CRAN,
eval = NOT_CRAN
)
```


This package provides a thin wrapper around [Rlabkey](https://cran.r-project.org/web/packages/Rlabkey/index.html) and connects to the the [CAVD DataSpace](https://dataspace.cavd.org) database, making it easier to fetch datasets from specific studies.


Expand Down

0 comments on commit 68f3e06

Please sign in to comment.