Skip to content
Switch branches/tags
Go to file
Cannot retrieve contributors at this time
title date anchor level weight
What R-hub platform(s)?
2018-01-28 21:55:52 +0100

With R-hub you can build and check your package on 20 platforms (different operating systems/architectures, different R versions). It is very easy to check all boxes in the webform or to use rhub::platforms()[,1] as value for the platform argument of rhub::check(), but probably useless, a waste of R-hub resources and a waste of time for you (20 emails with very similar results!). Just because you can doesn't mean you should! Here are a few tips to help you choose not too many platforms.

If you want to be confident your package works on all platforms, in particular for a CRAN submission

Use the R-hub platforms that are closest to platforms used by CRAN on submission:

  • Fedora Linux, R-devel, clang, gfortran,
  • Ubuntu Linux 16.04 LTS, R-release, GCC,
  • Windows Server 2008 R2 SP1, R-devel, 32/64 bit,
  • and, if your package needs compilation, Debian Linux, R-devel, GCC ASAN/UBSAN.

In general you'll be better off using rhub rather than the web form. In particular, running rhub::check_for_cran() will automatically select the platforms mentioned above, including guessing whether your package needs compilation.

If you want to reproduce a CRAN error on an exotic platform

Choose the platform that's closest to the CRAN platform.