Skip to content

Commit 85cfd7b

Browse files
committed
Final readiness
1 parent 6fa674c commit 85cfd7b

File tree

2 files changed

+31
-31
lines changed

2 files changed

+31
-31
lines changed

cran-comments.md

+18-15
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,33 @@
1-
## Release v.0.6.1
1+
## Release v.0.6.2
22

3-
* Switch from stations_dl() function asks users to store data in cache (doesn't run during tests or setup)
4-
* Don't test get_check() on CRAN because requires internet
5-
* Uses vcr v1.0.2 to avoid test directory problems
3+
* General changes to avoid CRAN policy violations, namely, errors when API is inaccessible:
4+
* Use @examplesIf to ONLY run examples if resources are available
5+
(I believe this was the problem that resulted in archival)
6+
* Avoid tests where API calls used (even if mocking, or using vcr)
7+
* Pre-compiled the vignettes which rely on the API
8+
* Fixed minor bugs with new stations data
9+
* Increased robustness to ECCC data changes
610

711
## Test environments
8-
As of June 4th, 2021
12+
As of November 30th, 2021
913

10-
* ubuntu 20.04 - Local (4.1.0), GitHub Actions (devel, release, old release)
11-
* OSX 10.15.7 - GitHub Actions (release)
12-
* Windows Server - GitHub Actions (release, old release), winbuilder (devel)
13-
* Debian GCC - rhub (release, patched, devel)
14-
* Debian CLANG - rhub (devel)
14+
* ubuntu 20.04 - Local (4.1.1), GitHub Actions (devel, release, old release)
15+
* Windows Server - GitHub Actions (release), winbuilder (devel), rhub (devel, release, old release)
16+
* OSX 11.6.1 - GitHub Actions (release)
17+
* Solaris - rhub (release)
1518
* Fedora GCC - rhub (devel)
1619
* Fedora CLANG - rhub (devel)
17-
* Solaris - rhub (release)
20+
* Debian CLANG - rhub (devel)
21+
* Debian GCC - rhub (release, patched, devel)
22+
1823

1924
## R CMD check results
2025

2126
There were no ERRORs and no WARNINGs
2227

23-
2 NOTEs:
28+
In addition to the NOTE that this is a new submission:
2429

25-
Debian GCC (patched and devel) had one NOTE:
26-
* checking for future file timestamps ... NOTE
27-
unable to verify current time
30+
1 NOTEs:
2831

2932
Solaris had one NOTEs:
3033
* checking top-level files ... NOTE

release_script.R

+13-16
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ dplyr::bind_cols(dplyr::select(hist, date_updated, checks),
1515
dplyr::filter(stringr::str_detect(date_updated, "2021-05-18")) %>%
1616
tidyr::unnest(checks) %>%
1717
dplyr::filter(status %in% c("WARN", "ERROR")) %>%
18-
dplyr::select(-version, -tinstall, -tcheck, -ttotal, -any, -ok, -note, -warn, -error, -fail) %>%
18+
dplyr::select(-version, -tinstall, -tcheck, -ttotal, -any,
19+
-ok, -note, -warn, -error, -fail) %>%
1920
tidyr::unnest(details) %>%
2021
dplyr::pull(output) %>%
2122
unique()
@@ -73,6 +74,10 @@ devtools::check(remote = TRUE, manual = TRUE, run_dont_test = TRUE,
7374
env_vars = list("NOT_CRAN" = ""))
7475
devtools::check(remote = TRUE, manual = TRUE, run_dont_test = TRUE)
7576

77+
# TURN OFF INTERNET AND TRY AGAIN
78+
devtools::check(remote = TRUE, manual = TRUE, run_dont_test = TRUE,
79+
env_vars = list("NOT_CRAN" = ""))
80+
7681
# Win builder
7782
devtools::check_win_release()
7883
devtools::check_win_devel()
@@ -139,11 +144,7 @@ codemetar::write_codemeta()
139144
# pkgdown::build_reference()
140145
#pkgdown::build_articles(lazy = FALSE)
141146

142-
pkgdown::build_site(lazy = TRUE)
143-
unlink("./vignettes/normals_cache/", recursive = TRUE)
144-
unlink("./vignettes/articles/tidyhydat_cache/", recursive = TRUE)
145-
146-
pkgdown::build_article(name = "articles/tidyhydat")
147+
pkgdown::build_site()
147148

148149

149150
## Push to github
@@ -152,16 +153,12 @@ pkgdown::build_article(name = "articles/tidyhydat")
152153
## Check Reverse Dependencies (are there any?)
153154
tools::dependsOnPkgs("weathercan")
154155

155-
revdepcheck::revdep_check(num_workers = 4)
156-
157-
## Double check
158-
old <- options(repos = c(CRAN = 'http://cran.rstudio.com'))
159-
db <- available.packages()
160-
pkgs <- rownames(db)
161-
deps <- tools::package_dependencies(pkgs, db, which = 'all', reverse = TRUE)
162-
deps$weathercan
163-
options(old)
164-
156+
# Check RavenR which suggests weathercan
157+
weathercan::kamloops_day %>%
158+
RavenR::rvn_rvt_write_met(metdata = .,
159+
filenames = file.path(tempdir(), "rvn_rvt_metfile.rvt"),
160+
filename_stndata = file.path(tempdir(), "met_stndata.rvt"))
161+
# Warnings about NA okay
165162

166163
## Push to github
167164

0 commit comments

Comments
 (0)