How to Run CRAN Checks for a Package on R-hub



How to Run CRAN Checks for a Package on R-hub

Step 1. Load required packages

library(devtools)
library(rhub)

Step 2. Inspect and choose R-hub platforms to run the check on

rhub::platforms()
## debian-clang-devel:
##   Debian Linux, R-devel, clang, ISO-8859-15 locale
## debian-gcc-devel:
##   Debian Linux, R-devel, GCC
## debian-gcc-devel-nold:
##   Debian Linux, R-devel, GCC, no long double
## debian-gcc-patched:
##   Debian Linux, R-patched, GCC
## debian-gcc-release:
##   Debian Linux, R-release, GCC
## fedora-clang-devel:
##   Fedora Linux, R-devel, clang, gfortran
## fedora-gcc-devel:
##   Fedora Linux, R-devel, GCC
## linux-x86_64-centos6-epel:
##   CentOS 6, stock R from EPEL
## linux-x86_64-centos6-epel-rdt:
##   CentOS 6 with Redhat Developer Toolset, R from EPEL
## linux-x86_64-rocker-gcc-san:
##   Debian Linux, R-devel, GCC ASAN/UBSAN
## macos-elcapitan-release:
##   macOS 10.11 El Capitan, R-release (experimental)
## solaris-x86-patched:
##   Oracle Solaris 10, x86, 32 bit, R-patched (experimental)
## ubuntu-gcc-devel:
##   Ubuntu Linux 16.04 LTS, R-devel, GCC
## ubuntu-gcc-release:
##   Ubuntu Linux 16.04 LTS, R-release, GCC
## ubuntu-rchk:
##   Ubuntu Linux 16.04 LTS, R-devel with rchk
## windows-x86_64-devel:
##   Windows Server 2008 R2 SP1, R-devel, 32/64 bit
## windows-x86_64-devel-rtools4:
##   Windows Server 2012, R-devel, Rtools4.0, 32/64 bit (experimental)
## windows-x86_64-oldrel:
##   Windows Server 2008 R2 SP1, R-oldrel, 32/64 bit
## windows-x86_64-patched:
##   Windows Server 2008 R2 SP1, R-patched, 32/64 bit
## windows-x86_64-release:
##   Windows Server 2008 R2 SP1, R-release, 32/64 bit

Step 3. build and check R packages on R-hub

devtools::check_rhub(pkg = ".", platforms = "debian-gcc-devel-nold" )


Version: Français





No Comments

Give a comment

Want to post an issue with R? If yes, please make sure you have read this: How to Include Reproducible R Script Examples in Datanovia Comments