tools/check.R

library(dplyr)

# spelling::spell_check_package()

devtools::check(cran = TRUE)

# Incoming feasibility checks for CRAN.
#
devtools::check(
  manual = TRUE,
  remote = TRUE,
  incoming = TRUE
)

# Check it on Windows.
#
devtools::check_win_devel()

rhub::check_for_cran(
  platforms = c(
    # ==========================================================================
    # -> devel
    # ==========================================================================
    "debian-clang-devel",
    "debian-gcc-devel",
    # "ubuntu-gcc-devel",
    "fedora-clang-devel",
    "fedora-gcc-devel",
    "windows-x86_64-devel",
    # ==========================================================================
    # -> patched
    # ==========================================================================
    "debian-gcc-patched",
    "windows-x86_64-patched",
    # "solaris-x86-patched",
    # ==========================================================================
    # -> release
    # ==========================================================================
    "debian-gcc-release",
    "ubuntu-gcc-release",
    "macos-highsierra-release",
    # "macos-m1-bigsur-release",
    "windows-x86_64-release"
  ),
  env_vars = c(
    `_R_CHECK_FORCE_SUGGESTS_` = "false",
    `_R_CHECK_CRAN_INCOMING_USE_ASPELL_` = "false"
  )
)

# Check on macOS.
#
rhub::check_for_cran(
  platforms = rhub::platforms() %>%
    filter(categories == "macOS") %>%
    pull(name),
  env_vars = c(
    `_R_CHECK_FORCE_SUGGESTS_` = "true",
    `_R_CHECK_CRAN_INCOMING_USE_ASPELL_` = "false"
  )
)

# # Try this one instead?
# #
# rhub::check(platform = c("macos-highsierra-release"))
#
# rhub::check_for_cran(
#   platforms = "macos-highsierra-release-cran",
#   env_vars = c(
#     `_R_CHECK_FORCE_SUGGESTS_` = "true",
#     `_R_CHECK_CRAN_INCOMING_USE_ASPELL_` = "false"
#   )
# )

Try the emayili package in your browser

Any scripts or data that you put into this service are public.

emayili documentation built on Aug. 30, 2023, 5:12 p.m.