Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check(): Error: "Running the tests in ‘tests/testthat.R’ failed" #82

Closed
dschlaep opened this issue Mar 8, 2017 · 0 comments
Closed
Milestone

Comments

@dschlaep
Copy link
Member

dschlaep commented Mar 8, 2017

“Running the tests in ‘tests/testthat.R’ failed”.

However, devtools::test() successfully completes all tests.

test()
Loading rSFSW2
Package 'rSFSW2' v2.0.0-9020 (2017-03-08) attached/loaded.
Testing rSFSW2
dbOutput: action: check: .............
dbWork: runIDs organization: ......
Delta-hybrid (mod3) downscaling: add_delta_to_PPT: ..............
Delta-hybrid (mod3) downscaling: applyPPTdelta_simple and applyPPTdelta_detailed: .........................
Delta-hybrid (mod3) downscaling: fix_PPTdata_length: ...........
GISSM: germination_wait_times: .............
GISSM: get_KilledBySoilLayers: ...................
GISSM: setFALSE_SeedlingSurvival_1stSeason: .........
Indices: .........................................................................................................
Input/Output of rSFSW2 datafiles: ...........
Match for appending data: ....
Pedotransfer functions: SWP <-> VWC: ...................................................................................................................................................

DONE ===========================================================================

Adding Sys.setenv("R_TESTS" = "") to testthat.R as recommended in r-lib/testthat#86 and r-lib/testthat#144 doesn't fix this.

* checking tests ...
ERROR
Running the tests in ‘tests/testthat.R’ failed.
Last 13 lines of output:

# Remove following line when that issue in R is fixed.
Sys.setenv("R_TESTS" = "")

library("testthat")
library("rSFSW2")

test_check("rSFSW2")

@dschlaep dschlaep added this to the rSWSF milestone Mar 8, 2017
dschlaep pushed a commit that referenced this issue Mar 8, 2017
- 2 remaining notes (see #80 and #81)
- 1 remaining warning (see #79)
- 1 error: “Running the tests in ‘tests/testthat.R’ failed”. However,
devtools::test() successfully completes all tests. (see #82)

Other fixes:
- added ‘Sys.setenv("R_TESTS" = “”)’ to testthat.R
- function ‘GriddedDailyWeatherFromNCEPCFSR_Global’ was missing
argument ‘verbose’
- cleanup in function ‘generate_RNG_streams’ moved to call to on.exit()
@dschlaep dschlaep modified the milestones: rSWSF, pass_R_CMD_check Jun 26, 2017
dschlaep added a commit that referenced this issue May 9, 2018
- close #82: we can now remove `Sys.setenv("R_TESTS" = "")` from file `tests/testthat.R`: this issue is now fixed
- change reporter from "Summary" to "List"
@dschlaep dschlaep closed this as completed May 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant