Skip to content

Commit

Permalink
Skipping tests that call out to external resources when running as CR…
Browse files Browse the repository at this point in the history
…AN (Issue217) (#219)

* adding skips to tests and breaking out cred tests

* updating comment

* removing libraries in test sub script, no longer needed

* rebuilding documentation with current roxygen2

* advancing the version number

* updating ver and date

* advancing the version number
  • Loading branch information
geneorama authored Aug 25, 2023
1 parent cbc0ae4 commit e4ba738
Show file tree
Hide file tree
Showing 12 changed files with 289 additions and 137 deletions.
62 changes: 31 additions & 31 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
Package: RSocrata
Type: Package
Title: Download or Upload 'Socrata' Data Sets
Description: Provides easier interaction with
'Socrata' open data portals <https://dev.socrata.com>.
Users can provide a 'Socrata' data set resource URL,
or a 'Socrata' Open Data API (SoDA) web query,
or a 'Socrata' "human-friendly" URL,
returns an R data frame. Converts dates to 'POSIX'
format and manages throttling by 'Socrata'.
Users can upload data to 'Socrata' portals directly
from R.
Version: 1.7.12-4
Date: 2022-11-16
Author: Hugh Devlin, Ph. D., Tom Schenk, Jr., Gene Leynes, Nick Lucius, John Malc, Mark Silverberg, and Peter Schmeideskamp
Maintainer: "Tom Schenk Jr." <[email protected]>
Depends:
R (>= 3.3.0)
Imports:
httr (>= 1.0.0),
jsonlite (>= 0.9.16),
mime (>= 0.3),
plyr (>= 1.8.4)
Suggests:
testthat (>= 0.10.0),
roxygen2 (>= 4.1.0),
readr (>= 0.2.2)
License: MIT + file LICENSE
URL: https://github.com/Chicago/RSocrata
BugReports: https://github.com/Chicago/RSocrata/issues
RoxygenNote: 6.1.1
Package: RSocrata
Type: Package
Title: Download or Upload 'Socrata' Data Sets
Description: Provides easier interaction with
'Socrata' open data portals <https://dev.socrata.com>.
Users can provide a 'Socrata' data set resource URL,
or a 'Socrata' Open Data API (SoDA) web query,
or a 'Socrata' "human-friendly" URL,
returns an R data frame. Converts dates to 'POSIX'
format and manages throttling by 'Socrata'.
Users can upload data to 'Socrata' portals directly
from R.
Version: 1.7.13-7
Date: 2023-08-25
Author: Hugh Devlin, Ph. D., Tom Schenk, Jr., Gene Leynes, Nick Lucius, John Malc, Mark Silverberg, and Peter Schmeideskamp
Maintainer: "Gene Leynes" <[email protected]>
Depends:
R (>= 3.3.0)
Imports:
httr (>= 1.0.0),
jsonlite (>= 0.9.16),
mime (>= 0.3),
plyr (>= 1.8.4)
Suggests:
testthat (>= 0.10.0),
roxygen2 (>= 4.1.0),
readr (>= 0.2.2)
License: MIT + file LICENSE
URL: https://github.com/Chicago/RSocrata
BugReports: https://github.com/Chicago/RSocrata/issues
RoxygenNote: 7.2.3
38 changes: 19 additions & 19 deletions RSocrata.Rproj
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
Version: 1.0

RestoreWorkspace: Default
SaveWorkspace: Default
AlwaysSaveHistory: Default

EnableCodeIndexing: Yes
UseSpacesForTab: Yes
NumSpacesForTab: 2
Encoding: UTF-8

RnwWeave: Sweave
LaTeX: pdfLaTeX

BuildType: Package
PackageUseDevtools: Yes
PackageInstallArgs: --no-multiarch --with-keep.source
PackageCheckArgs: --as-cran
PackageRoxygenize: rd,collate,namespace
Version: 1.0
RestoreWorkspace: Default
SaveWorkspace: Default
AlwaysSaveHistory: Default
EnableCodeIndexing: Yes
UseSpacesForTab: Yes
NumSpacesForTab: 2
Encoding: UTF-8
RnwWeave: Sweave
LaTeX: pdfLaTeX
BuildType: Package
PackageUseDevtools: Yes
PackageInstallArgs: --no-multiarch --with-keep.source
PackageCheckArgs: --as-cran
PackageRoxygenize: rd,collate,namespace
1 change: 0 additions & 1 deletion man/fieldName.Rd

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

1 change: 0 additions & 1 deletion man/isFourByFour.Rd

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

1 change: 0 additions & 1 deletion man/posixify.Rd

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

9 changes: 7 additions & 2 deletions man/read.socrata.Rd

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

1 change: 0 additions & 1 deletion man/validateUrl.Rd

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

10 changes: 8 additions & 2 deletions man/write.socrata.Rd

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

24 changes: 24 additions & 0 deletions tests/testthat.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,28 @@

## LOAD REQUIRED LIBRARIES

library(testthat)
library(RSocrata)
library(httr)
library(jsonlite)
library(mime)
library(plyr)

## Set credentials for testing private datasets and write functionality
## The related tests are not currently run due to a lack of vendor support,
## see issue #174 for details, although it's hoped to be resolved in a
## future release.
Sys.setenv(SOCRATA_EMAIL="[email protected]")
Sys.setenv(SOCRATA_PASSWORD="7vFDsGFDUG")


## RUN TESTS
## This command will run all files matching test*.R in `./tests`, unless
## the tests are skipped globally or individually.
## Note: Run locally with `devtools::check()`
## Note: Run this to test as CRAN: Sys.setenv(NOT_CRAN=FALSE)

test_check("RSocrata")



Loading

0 comments on commit e4ba738

Please sign in to comment.