This is a resubmission.
I was asked to replace \dontrun{}
by \donttest{}
in the Rd-files. I was using \dontrun{}
to wrap some examples that are supposed to throw informative error/warning messages and therefore should only be run interactively by the users.
Since R 4.0.0, R CMD check --as-cran
runs \donttest
examples by default, and hence wrapping the aforementioned examples with \donttest{}
doesn't prevent them from being evaluated, which returns errors and causes the package fail R CMD check --as-cran
:
checking examples with --run-donttest ... ERROR
Also, using \donttest{}
with examples that are supposed to throw error messages doesn't interact well with example()
because the execution is stopped at the first error and consequently not all examples are printed.
To avoid this, I opted for a different approach. The examples that are supposed to return error/warning messages are now wrapped in try()
instead of \dontrun{}
. As a consequence, they can be run without returning in actual errors. This solution also interacts well with example()
: it prints all the error/warning messages without stopping the execution or returning errors.
| Platform | R version | R CMD check | R CMD check --as-cran | | ----- | ----- | ----- | ----- | | macOS Catalina 10.15.5 | R 4.0.1 | Ok | 2 NOTEs | | Ubuntu 20.04 LTS | R 4.0.1 | Ok | 2 NOTEs |
Note 1:
{r}
Maintainer: 'Pedro Fonseca <pedro.teles.fonseca@phd.iseg.ulisboa.pt>
New submission
This is a standard note for first submissions and should be safe to ignore.
Note 2:
unable to verify current time
After browsing through R CMD check's code I realized that it depends on two external web resources to obtain the current time: http://worldclockapi.org and http://worldclockapi.com/. Both these websites are currently offline and that should be the source of the problem. If that's the case, there is nothing I can do about this note.
| R version | Status | | ----- | ----- | | R-oldrel | 1 NOTE | | R-release | 1 NOTE | | R-devel | 1 NOTE |
| Platform | R version | Status | | ----- | ----- | ----- | | macOS 10.13.6 High Sierra, CRAN's setup | R-release | Ok | | Oracle Solaris 10, x86, 32 bit | R-release | Ok | | Ubuntu Linux 16.04 LTS, GCC | R-devel | Ok | | Fedora Linux, GCC | R-devel | Ok | | Fedora Linux, clang, gfortran | R-devel | Ok | | Debian Linux, GCC | R-devel | Ok | | Windows Server 2008 R2 SP1, 32/64 bit | R-devel | Ok |
| Platform | R version | Status | | ----- | ----- | ----- | | macOS Catalina 10.15 | R-oldrel, R-release, R-devel | Passing | | Ubuntu 16.04 | R-oldrel, R-release | Passing | | Windows Server 2019 | R-oldrel, R-release, R-devel | Passing |
| Platform | R version | Status | | ----- | ----- | ----- | | Linux (Xenial) | R-oldrel | Passed | | Linux (Xenial) | R-release | Passed | | Linux (Xenial) | R-devel | Passed |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.