Prep Error during rhub::check_for_cran

Hi Posit community,

I'm building an R package for the first time and ran into prep errors when doing the final check using rhub::check_for_cran().
Specifically, the check seems to work for Windows and Linux but fails for "Ubuntu Linux 20.04.1 LTS, R-release, GCC".
Moreover, it is not even clear what the error is for the prep failure in Ubuntu. Here is the email I received from rhub regarding the failure: (CoxAIPW 0.0.1 is my package name)

CoxAIPW 0.0.1: PREPERROR
Build ID: CoxAIPW_0.0.1.tar.gz-84328d7af8874d4d9a292f723057287d



Platform: Ubuntu Linux 20.04.1 LTS, R-release, GCC
Submitted: 3 hours 37 minutes 25.7 seconds ago
Build time: 1 hour 59 minutes 44.5 seconds

See the full build log: text, artifacts.

I also include below a successful check on windows from rhub:

CoxAIPW 0.0.1: NOTE
Build ID: CoxAIPW_0.0.1.tar.gz-29e32f4c74804f459dc489bc00df30d9



Platform: Windows Server 2022, R-devel, 64 bit
Submitted: 3 minutes 53.7 seconds ago
Build time: 3 minutes 19.1 seconds

NOTES:

  • checking CRAN incoming feasibility ... NOTE Maintainer >' New submission Possibly misspelled words in DESCRIPTION: AIPW (10:196, 10:534)

  • checking examples ... NOTE Examples with CPU (user + system) or elapsed time > 5s user system elapsed CoxAIPW 5.55 0.41 5.95

  • checking for detritus in the temp directory ... NOTE Found the following files/directories: 'lastMiKTeXException'

Please let me know if anyone has any ideas why, thanks.

Unfortunately that's a bug in R-hub, and if the log is too long, then a successful check will turn into a prep error. If you look at the log, you'll see that the check is almost fine, you only get

* checking CRAN incoming feasibility ... NOTE
Maintainer: ‘Jiyu Luo <charlesluo1002@gmail.com>’

New submission

Possibly misspelled words in DESCRIPTION:
  AIPW (10:196, 10:534)

Found the following (possibly) invalid URLs:
  URL: https://https://github.com/charlesluo1002/CoxAIPW
    From: DESCRIPTION
    Status: Error
    Message: libcurl error code 6:
      	Could not resolve host: https
  URL: https://https://github.com/charlesluo1002/CoxAIPW/issues
    From: DESCRIPTION
    Status: Error
    Message: libcurl error code 6:
      	Could not resolve host: https

and

* checking examples ... [11s/42s] NOTE
Examples with CPU (user + system) or elapsed time > 5s
         user system elapsed
CoxAIPW 7.834  0.088  29.434

This topic was automatically closed after 45 days. New replies are no longer allowed.


If you have a query related to it or one of the replies, start a new topic and refer back with a link.