mirror of
https://github.com/rstudio/shiny.git
synced 2026-04-29 03:00:45 -04:00
* Remove all hard copied man files * Move fastmap reexports into ./R/rexport-fastmap.R * Update htmltools man script to look for the latest tag and make a reexports file * document * Update htmltools reexports to listen to ./inst/_htmltools_reexports.json file. Fix pkgdown failure. * Allow for any package reexports. Currently fastmap and htmltools * remove progress dependency * add back skip on cran for pkgdown * Test pkgdown only if called using devtools::test or within CI * Removed outdated import docs file. Moved pkgdown and reexports files into ./tools/documentation. Updated travis file. * add local test for pkgdown * updated comments and added a debug comment * print the repo url and close it * print the downloaded repo tag info * use gh package and make sure it's installed * add PAT to travis and remove username from gh::gh call * skip pkgdown test on cran and add comments
10 lines
289 B
R
10 lines
289 B
R
|
|
validate_key <- function(key) {
|
|
if (!is.character(key) || length(key) != 1 || nchar(key) == 0) {
|
|
stop("Invalid key: key must be single non-empty string.")
|
|
}
|
|
if (grepl("[^a-z0-9]", key)) {
|
|
stop("Invalid key: ", key, ". Only lowercase letters and numbers are allowed.")
|
|
}
|
|
}
|