NIEHS / amadeus

https://niehs.github.io/amadeus/
Other
7 stars 1 forks source link

1.0.3 #119

Closed mitchellmanware closed 3 months ago

mitchellmanware commented 3 months ago

Updates from CRAN Submission amadeus 1.0.2

Italicized are the comments from the reviewer, and bullet points are my changes to address comment the comment or an explanation of why it was not adopted.


Please reduce the length of the title to less than 65 characters.

image

download_remove_zips

Other

mitchellmanware commented 3 months ago

The unit test for the calc_lagged function with geom = TRUE exhibits very strange behavior. The testthat::expect_no_error unit tests run without error, but when narr_lag_geom_setcols is called in the specific testthat::expect_true tests, it cannot be found.

This error was also occurring on a previous PR (https://github.com/NIEHS/amadeus/pull/105/commits/39f9b336e2ec23883035ec17734af728d8c38a01 and https://github.com/NIEHS/amadeus/pull/105/commits/3d17f5e3ed1f699b098b2ab1ec1405810bdca4bf) without reason.

The tests run and pass locally, so I am not sure what is causing this error. I removed the specific tests for now.

Screenshot 2024-08-08 at 2 20 55 PM Screenshot 2024-08-08 at 2 19 39 PM
sigmafelix commented 3 months ago

@mitchellmanware I think the updated codes are all good with my quick update #120. Thank you!

mitchellmanware commented 3 months ago

@kyle-messier @sigmafelix All GitHub Actions (which run with --as-cran) pass with Status: OK (no notes, warnings, or errors).

Check on win-builder is complaining about "Serre" in the calc_sedc citation which has been included in the package description paragraph. It also produced a spell check note for "et al., ..." instead of the name. I do not know how to add the citation if both of these throw a NOTE. Check is also reporting a NOTE for the https://epsg.io URL. This has not caused NOTES on win-builder in the past and does not report on GitHub actions or local runs.

Local check passes with NOTES and a WARNING, but we can ignore these. The first NOTE just reports the maintainer name and "new submission". The second NOTE reports that the HTML manual cannot be checked because tidy is not installed on triton. The WARNING is related to the check not identifying the qpdf package (which is installed).

> rcmdcheck::rcmdcheck(args = c("--as-cran"))
── R CMD build ─────────────────────────────────────────────────────────────────────────────────────
✔  checking for file ‘.../DESCRIPTION’ ...
─  preparing ‘amadeus’: (3s)
✔  checking DESCRIPTION meta-information ...
─  installing the package to process help pages
   Loading required namespace: amadeus
─  saving partial Rd database (5.2s)
✔  creating vignettes (5.8s)
─  checking for LF line-endings in source and make files and shell scripts
─  checking for empty or unneeded directories
   Removed empty directory ‘amadeus/inst/extdata/data_files’
   Removed empty directory ‘amadeus/inst/extdata/zip_files’
─  building ‘amadeus_1.0.3.tar.gz’

── R CMD check ─────────────────────────────────────────────────────────────────────────────────────
─  using log directory ‘/tmp/RtmpJyLNev/file27500add0ed15/amadeus.Rcheck’
─  using R version 4.3.2 (2023-10-31)
─  using platform: x86_64-pc-linux-gnu (64-bit)
─  R was compiled by
       gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-18)
       GNU Fortran (GCC) 8.5.0 20210514 (Red Hat 8.5.0-18)
─  running under: Rocky Linux 8.8 (Green Obsidian)
─  using session charset: UTF-8
─  using option ‘--as-cran’
✔  checking for file ‘amadeus/DESCRIPTION’
─  this is package ‘amadeus’ version ‘1.0.3’
─  package encoding: UTF-8
─  checking CRAN incoming feasibility ... [5s/67s] NOTE (1m 7.3s)
   Maintainer: ‘Kyle Messier <kyle.messier@nih.gov>’

   New submission
✔  checking package namespace information ...
✔  checking package dependencies (609ms)
✔  checking if this is a source package
✔  checking if there is a namespace
✔  checking for executable files (497ms)
✔  checking for hidden files and directories ...
✔  checking for portable file names ...
✔  checking for sufficient/correct file permissions ...
─  checking whether package ‘amadeus’ can be installed ... [94s/17s] OK (17.3s)
✔  checking installed package size ...
> rcmdcheck::rcmdcheck(args = c("--as-cran"))
── R CMD build ─────────────────────────────────────────────────────────────────────────────────────
✔  checking for file ‘.../DESCRIPTION’ ...
─  preparing ‘amadeus’: (3.3s)
✔  checking DESCRIPTION meta-information ...
─  installing the package to process help pages
   Loading required namespace: amadeus
─  saving partial Rd database (5.2s)
✔  creating vignettes (5.8s)
─  checking for LF line-endings in source and make files and shell scripts
─  checking for empty or unneeded directories
   Removed empty directory ‘amadeus/inst/extdata/data_files’
   Removed empty directory ‘amadeus/inst/extdata/zip_files’
─  building ‘amadeus_1.0.3.tar.gz’

── R CMD check ─────────────────────────────────────────────────────────────────────────────────────
─  using log directory ‘/tmp/RtmpJyLNev/file27500a508e4c28/amadeus.Rcheck’
─  using R version 4.3.2 (2023-10-31)
─  using platform: x86_64-pc-linux-gnu (64-bit)
─  R was compiled by
       gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-18)
       GNU Fortran (GCC) 8.5.0 20210514 (Red Hat 8.5.0-18)
─  running under: Rocky Linux 8.8 (Green Obsidian)
─  using session charset: UTF-8
─  using option ‘--as-cran’
✔  checking for file ‘amadeus/DESCRIPTION’
─  this is package ‘amadeus’ version ‘1.0.3’
─  package encoding: UTF-8
─  checking CRAN incoming feasibility ... [5s/62s] NOTE (1m 2.5s)
   Maintainer: ‘Kyle Messier <kyle.messier@nih.gov>’

   New submission
✔  checking package namespace information ...
✔  checking package dependencies (594ms)
✔  checking if this is a source package ...
✔  checking if there is a namespace
✔  checking for executable files (496ms)
✔  checking for hidden files and directories ...
✔  checking for portable file names ...
✔  checking for sufficient/correct file permissions ...
─  checking whether package ‘amadeus’ can be installed ... [95s/18s] OK (17.6s)
✔  checking installed package size ...
✔  checking package directory
✔  checking for future file timestamps ...
✔  checking ‘build’ directory ...
✔  checking DESCRIPTION meta-information (343ms)
✔  checking top-level files ...
✔  checking for left-over files ...
✔  checking index information (355ms)
✔  checking package subdirectories (360ms)
✔  checking R files for non-ASCII characters ...
✔  checking R files for syntax errors ...
✔  checking whether the package can be loaded (4.8s)
✔  checking whether the package can be loaded with stated dependencies (4.5s)
✔  checking whether the package can be unloaded cleanly (4.5s)
✔  checking whether the namespace can be loaded with stated dependencies (4.5s)
✔  checking whether the namespace can be unloaded cleanly (4.7s)
✔  checking loading without being on the library search path (4.8s)
✔  checking use of S3 registration (10.8s)
✔  checking dependencies in R code (5s)
✔  checking S3 generic/method consistency (4.9s)
✔  checking replacement functions (4.5s)
✔  checking foreign function calls (4.9s)
─  checking R code for possible problems ... [211s/25s] OK (25.1s)
✔  checking Rd files (6.1s)
✔  checking Rd metadata ...
✔  checking Rd line widths ...
✔  checking Rd cross-references ...
✔  checking for missing documentation entries (4.8s)
✔  checking for code/documentation mismatches (14.3s)
✔  checking Rd \usage sections (5.4s)
✔  checking Rd contents ...
✔  checking for unstated dependencies in examples (336ms)
    WARNING
   ‘qpdf’ is needed for checks on size reduction of PDFs
✔  checking installed files from ‘inst/doc’ ...
✔  checking files in ‘vignettes’ ...
─  checking examples ... [35s/31s] OK (31.4s)
✔  checking for unstated dependencies in vignettes (364ms)
✔  checking package vignettes in ‘inst/doc’
✔  checking re-building of vignette outputs (5.7s)
✔  checking PDF version of manual (2.7s)
N  checking HTML version of manual ...
   Skipping checking HTML validation: no command 'tidy' found
✔  checking for non-standard things in the check directory
✔  checking for detritus in the temp directory

   See
     ‘/tmp/RtmpJyLNev/file27500a508e4c28/amadeus.Rcheck/00check.log’
   for details.

── R CMD check results ────────────────────────────────────────────────────────── amadeus 1.0.3 ────
Duration: 3m 59.6s

❯ checking for unstated dependencies in examples ... OK
   WARNING
  ‘qpdf’ is needed for checks on size reduction of PDFs

❯ checking CRAN incoming feasibility ... [5s/62s] NOTE
  Maintainer: ‘Kyle Messier <kyle.messier@nih.gov>’

  New submission

❯ checking HTML version of manual ... NOTE
  Skipping checking HTML validation: no command 'tidy' found

0 errors ✔ | 1 warning ✖ | 2 notes ✖
> 

I was receiving these same NOTES and WARNINGS in local checks before our previous submission, which passed the automated tests, so I am more concerned about the spelling error and the URL verification.

Attached shows run of download_hms using NIEHS remote Windows desktop. I had to edit the curl command to be U://Desktop/bin/curl.exe ... because the virtual desktop does not have curl and I do not have permission to edit environmental variables. Besides this change, the download functions and download_run download data as expected.

Screenshot 2024-08-09 at 8 37 11 AM (2)