months <- "Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec|January|February|March|April|June|July|August|September|October|November|December"
pattern <- paste0(
"(", months, "|\\d{1,4})",
"[- /\\.](", months, "|\\d{1,2}),?",
"[- /\\.]\\d{2,4}"
)
months <- "Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec|January|February|March|April|June|July|August|September|October|November|December"
pattern <- paste0(
"(", months, "|\\d{1,4})",
"[- /\\.](", months, "|\\d{1,2}),?",
"[- /\\.]\\d{2,4}"
)
(with an R package version mainly aimed at metascientists)
(with an R package version mainly aimed at metascientists)
It's one of my top tips when I teach people how to write R packages: workshop your names and defaults a lot before you first submit to CRAN!
It's one of my top tips when I teach people how to write R packages: workshop your names and defaults a lot before you first submit to CRAN!
subugoe.github.io/metacheck/
subugoe.github.io/metacheck/
r-pkgs.org/data.html#se...
r-pkgs.org/data.html#se...
reprex.lazyload::mydata # works
reprex.lazyload::myfunc() # fails
library(reprex.lazyload)
myfunc() # works
reprex.lazyload::mydata # works
reprex.lazyload::myfunc() # fails
library(reprex.lazyload)
myfunc() # works