cran-comments.md

CRAN submission 12-02-2025

This is an update to rdwplus. The update contains two small changes: The maintainer's email address has been changed to reflect a new institutional affiliation. The 'title' field in the DESCRIPTION file has been changed to be more informative ("An Implementation of IDW-PLUS" -> "Inverse Distance Weighted Percent Land Use for Streams").

Test environments

Install was tested using the rhub package. The following test environments were used:

The MacOS platforms successfully installed the package with only a single NOTE (see below), but the following error was thrown during the set-up process:

Run r-hub/actions/setup-r@v1
No such keg: /usr/local/Cellar/pkg-config@0.29.2

This is not an issue with the rdwplus package. The CRAN checks were successful with only one NOTE (see below).

Tests were run twice using Option 5 from rhub_platforms() (Windows Server 2022 x64, R-devel), but the tests timed out on both occasions. This issue did not arise during any of the other tests, including the one conducted on a local Windows machine running R 4.4.2. It appears rdwplus is not responsible for this issue.

R CMD check results

There were no ERRORs or WARNINGs.

There were some NOTEs.

The following NOTE appeared during the local Windows installation:

Maintainer: 'Alan Pearse <alan.pearse@unimelb.edu.au>'

New maintainer:
  Alan Pearse <alan.pearse@unimelb.edu.au>
Old maintainer(s):
  Alan Pearse <arp320@uowmail.edu.au>

This is fine: the maintainer is the same person but the email has been updated to reflect a new institutional affiliation.

The following NOTE appeared on all rhub platforms:

Found the following hidden files and directories:
  .github
These were most likely included in error. See section 'Package
structure' in the 'Writing R Extensions' manual.

This note is likely ignorable. It appears to be an artefact of rhub. The .github folder is not included in the version submitted to CRAN.

CRAN submission 23-08-2023

This is an update. The purpose of this update is to change the main dependency from rgrass7 to rgrass, to resolve a documentation issue flowing on from a change to roxygen2, and also to remove any dependency on raster. This is the first submission of the updated package.

Addressing correspondence from CRAN

Please note the following emails we have received from CRAN and our responses to the emails:

Regarding the documentation issue, we received the following email on 19 August, 2023. We have addressed this by making the change suggested.

" Dear maintainer,

You have file 'rdwplus/man/rdwplus.Rd' with \docType{package}, likely intended as a package overview help file, but without the appropriate PKGNAME-package \alias as per "Documenting packages" in R-exts.

This seems to be the consequence of the breaking change

Using @docType package no longer automatically adds a -package alias. Instead document _PACKAGE to get all the defaults for package documentation.

in roxygen2 7.0.0 (2019-11-12) having gone unnoticed, see https://github.com/r-lib/roxygen2/issues/1491.

As explained in the issue, to get the desired PKGNAME-package \alias back, you should either change to the new approach and document the new special sentinel

"_PACKAGE"

or manually add

@aliases rdwplus-package

if remaining with the old approach.

Please fix in your master sources as appropriate, and submit a fixed version of your package within the next few months.

Best, -k "

Regarding the deprecation of rgrass7, we received the following email on 24 May, 2023. We have removed the dependency on rgrass7 and switched over to using rgrass.

"Dear maintainer,

rdwplus will be affected when rgrass7 retires in October 2023, as a consequence of the retirement of rgdal (see https://r-spatial.org/r/2023/05/15/evolution4.html and reports linked from there). rgrass is the replacement for rgrass7, sso please update rdwplus to use it instead. Note that since September 2022, raster has used terra in place of rgdal to access GDAL functionality, as does rgrass.

Best wishes,

Roger "

Test environments

Install was tested using the rhub package and the check_for_cran() function.

The test environments listed below were used:

R CMD check results

There were no ERRORs or WARNINGs.

There were some NOTEs.

The following NOTE appeared on all test environments:

Maintainer: 'Alan Pearse <arp320@uowmail.edu.au>'

New maintainer:
  Alan Pearse <arp320@uowmail.edu.au>
Old maintainer(s):
  Alan Pearse <apearse9@gmail.com>

This is fine: the maintainer is the same person but the email has been updated to reflect a new institutional affiliation.

On Windows Server 2022, R-devel, 64 bit, there were three additional NOTEs. The first is ignorable according to R-hub issue #560:

* checking for non-standard things in the check directory ... NOTE
Found the following files/directories:
  ''NULL''

The second is also most likely ignorable (see R-hub issue #503):

* checking for detritus in the temp directory ... NOTE
  'lastMiKTeXException'

The following NOTE also appears on Fedora Linux, R-devel, clang, gfortran, and Ubuntu Linux 20.04.1 LTS, R-release, GCC:

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

This is another issue that has been raised on the GitHub repo for rhub (see R-hub issue #548). It is most likely ignorable.

CRAN submission 03-12-2019

THIS IS A RESUBMISSION.

Feedback from CRAN maintainer

" Thanks,

Please omit the redundant "in R" from the title.

You have examples for unexported functions which cannot run in this way. Please either add rdwplus::: to the function calls in the examples, omit these examples or export these functions. e.g.: get_distance.Rd, ...

\dontrun{} should only be used if the example really cannot be executed (e.g. because of missing additional software, missing API keys, ...) by the user. That's why wrapping examples in \dontrun{} adds the comment ("# Not run:") as a warning for the user. Does not seem necessary in e.g. search_for_grass.Rd, ... Please replace \dontrun with \donttest.

Please always make sure to reset to user's options (not default), wd or par after you changed it in examples and vignettes. e.g.: reclassify_streams.Rd, ... oldpar <- par(mfrow = c(2,2)) ... par(oldpar)

Please ensure that your functions do not write by default or in your examples/vignettes/tests in the user's home filespace (including the package directory and getwd()). That is not allowed by CRAN policies. Please only write/save files if the user has specified a directory in the function themselves. In your examples/vignettes/tests you can write to tempdir().

Please fix and resubmit. "

Changes and addressing comments

In the DESCRIPTION file:

In Rd files:

Addressing the "[ensuring] that [our] functions do not write by default or in [our] examples/vignettes/tests in the user's home filespace. ... Please only write/save files if the user has specified a directory in the function themselves" comment:

In any case, the main modes of writing outputs as files in the user's filespace are the two functions retrieve_raster.R and retrieve_vector.R. These are functions the user must generally explicitly call, and in which the user can specify exactly where files are to be written. Almost all other functions (with the exceptions addressed in the dot points above) only write to the GRASS dbase location. When initialising GRASS from R (done with a function initGRASS from the package rgrass7), the user must set this parameter or else it is set to tempdir() by default. Therefore, the user knows where these files are going.

Other minor changes:

Test environments

R CMD check results

There were no ERRORs or WARNINGs.

Besides the NOTE "Maintainer: 'Alan Pearse apearse9@gmail.com'", there were no NOTEs.

Downstream dependencies

There are no downstream dependencies.

CRAN submission 29-11-2019

THIS IS A RESUBMISSION.

Feedback from CRAN maintainer

" Please shorten the title to a maximum of 65 characters. Acronyms can be used on their own in the title as long as they are explained in the description field.

Please write references in the form authors (year) authors (year) f authors (year, ISBN:...) or if those are not available: authors (year) with no space after 'doi:', 'arXiv:', 'https:' and angle brackets for auto-linking.

Please add small executable examples in your Rd-files to illustrate the use of the exported function but also enable automatic testing.

Please fix and resubmit, and document what was changed in the submission comments. "

Changes

In the DESCRIPTION file:

In Rd files:

Note that the request was

"Please add small executable examples in your Rd-files to illustrate the use of the exported function but also enable automatic testing".

We have indeed written executable examples for our exported functions. These illustrate how to use our functions. However, on the 'automatic testing' note, we don't think this is possible. Very few of our functions can be run without a valid installation of GRASS GIS 7.6 on the user's computer. Not only that but the function get_flow_length will not execute without a GRASS add-on module called r.stream.distance that must be installed manually from inside GRASS. Similarly for the function fill_sinks with the GRASS add-on module r.hydrodem, and snap_sites with the module r.stream.snap. These reliances on the GRASS GIS add-on modules have been noted in the corresponding Rd files. CRAN checks performed on computers without GRASS GIS 7.6 will therefore always fail if we allow examples to be executed during CRAN checks and other testing. We tried to do CRAN checks on the testing environments listed below with the examples set to run and we came across this issue. To avoid this, we have set up the examples such that instructive code blocks are provided but are set only to run if R detects an instance of GRASS is running. Users can still execute the examples by pasting the code from the function help files into their consoles. We have tested on a local Windows 10 computer with R 3.6.1 that the examples run without error when GRASS is running.

In functions:

Test environments

R CMD check results

There were no ERRORs or WARNINGs.

Besides the NOTE "Maintainer: 'Alan Pearse apearse9@gmail.com'", there were no NOTEs.

Downstream dependencies

There are no downstream dependencies.

Initial CRAN submission

Test environments

R CMD check results

There were no ERRORs or WARNINGs.

Besides the NOTE "Maintainer: 'Alan Pearse apearse9@gmail.com'", there were no NOTEs.

Downstream dependencies

There are no downstream dependencies.



apear9/rdwplus documentation built on Feb. 13, 2025, 11:34 a.m.