Closed YongLuo007 closed 8 years ago
Thanks Yong.
Please note that this module is mirrored from our private lab modules repo (sorry if I didn't make that clear). The changes should really be made in that repo. Since this addition is small and simple, I'll incorporate the change there once I've finished updating the modules with the most recent SpaDES
changes.
For future reference, please also note:
use tempdir()
to create temporary directories for testing
tmpdir <- tempdir(); on.exit(unlink(tmpdir, recursive = TRUE))
modulePath <- file.path(tmpdir, "modules")
outputPath <- file.path(tmpdir, "output")
use downloadModule
to download the files to the tempdir
downloadModule("forestAge", modulePath) # default is not to download data
downloadData("forestAge", modulePath) # optionally, download data in previous step (`data = TRUE`)
alex, thanks.
incorporated and improved in https://github.com/eliotmcintire/McIntire-lab/commit/30e57c39acfbf90042ed5c8114e38a3b5b9a311f
the test was created for forestAge module also please let me know if the downloadModule has the mechanism to download all the tests/testthat/test-forestAgeAge.R.