From a28da1670f2b0f4d45a9f961b4a31badcde66e52 Mon Sep 17 00:00:00 2001 From: Spatiotemporal-Exposures-and-Toxicology Date: Tue, 16 Jan 2024 11:02:51 -0500 Subject: [PATCH 1/2] pkgdown style updates --- DESCRIPTION | 6 ++++-- _pkgdown.yml | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+), 2 deletions(-) create mode 100644 _pkgdown.yml diff --git a/DESCRIPTION b/DESCRIPTION index cea5c51a..aa0a4e8d 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -2,7 +2,7 @@ Package: NRTAPmodel Title: The SET group near real time air pollution model Version: 0.1.0 Authors@R: c( - person("Kyle", "Messier", , "kyle.messier@nih.gov", role = c("aut", "cre")), + person("Kyle", "Messier", , "kyle.messier@nih.gov", role = c("aut", "cre"), comment = c(ORCID = "0000-0001-9508-9623")), person("Insang", "Song", role = c("aut", "ctb"), comment = c(ORCID = "0000-0001-8732-3256")), person("Eva", "Marques", role = c("aut", "ctb")), person("Mitchell", "Manware", role = c("aut", "ctb")), @@ -18,6 +18,8 @@ Suggests: covr, withr, knitr, rmarkdown, sftime, lwgeom, FNN Encoding: UTF-8 VignetteBuilder: knitr, rmarkdown RoxygenNote: 7.2.3 +Config/Needs/website: tidyverse/tidytemplate Config/testhat/edition: 3 License: MIT + file LICENSE -URL: https://spatiotemporal-exposures-and-toxicology.github.io/NRTAPmodel/ +URL: https://github.com/Spatiotemporal-Exposures-and-Toxicology/NRTAPmodel, +https://spatiotemporal-exposures-and-toxicology.github.io/NRTAPmodel/ diff --git a/_pkgdown.yml b/_pkgdown.yml new file mode 100644 index 00000000..83b7f2a9 --- /dev/null +++ b/_pkgdown.yml @@ -0,0 +1,60 @@ +url: https://spatiotemporal-exposures-and-toxicology.github.io/NRTAPmodel/ + + +template: + bootstrap: 5 + bootswatch: minty + +navbar: + structure: + left: [reference, articles] + right: [search, github] + + +development: + mode: auto + +reference: + - title: download data + desc: Download environmental data and process functions + contents: + - starts_with("download") + - starts_with("build") + + - title: check functions + desc: Download environmental data and process functions + contents: + - matches("check") + + - title: spacetime data and cross-validation + desc: future stdt package materials + contents: + - matches("stdt") + - matches("dt") + - starts_with("generate") + - starts_with("extract") + - matches("cv") + + - title: geographic covariate + desc: functions to calculate geographic covariates + contents: + - starts_with("calc") + + + - title: base learning + desc: fitting base learner models + contents: + - matches("base_learner") + + - title: meta learning + desc: fitting the meta learner model + contents: + - matches("meta") + + - title: other functions + desc: other helper functions + contents: + - read_commands + - startup_nrtap + - test_download_functions + From ad9ba32d492fe5f544b16e2d16feead4d0796e56 Mon Sep 17 00:00:00 2001 From: mitchellmanware Date: Tue, 16 Jan 2024 12:14:57 -0500 Subject: [PATCH 2/2] Sys.sleep(10) for MODIS URL test --- tests/testthat/test-download_functions.R | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/testthat/test-download_functions.R b/tests/testthat/test-download_functions.R index 869b3670..529fb21c 100644 --- a/tests/testthat/test-download_functions.R +++ b/tests/testthat/test-download_functions.R @@ -607,6 +607,7 @@ testthat::test_that("MODIS-MOD09GA download URLs have HTTP status 200.", { urls <- extract_urls(commands = commands, position = 4) # check HTTP URL status url_status <- check_urls(urls = urls, size = 10L, method = "HEAD") + Sys.sleep(10) # implement unit tests test_download_functions(directory_to_save = directory_to_save, commands_path = commands_path,