I have plaftform-spedific code in my package vignette:
x <- c("01JAN2020:00:00:00", "15JAN2020:00:00:00")
# This is plaftform-spedific
Sys.setlocale("LC_TIME", "English")
as.Date(x, "%d%b%Y")
# [1] "2020-01-01" "2020-01-15"
The vignette passes R CMD check --as-cran
on my Windows machine, but would fail on a Linux machine (would need locale = "en_US"
).
Is there good practice here? Would it work if I submit my package to CRAN as is? (checks seem to be run on different platforms on CRAN according to https://cran.r-project.org/web/checks/check_summary.html)