Skip to content

Instantly share code, notes, and snippets.

@alandipert
Created August 2, 2019 22:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alandipert/dcefdcdef46dee3442b913b362f2efac to your computer and use it in GitHub Desktop.
Save alandipert/dcefdcdef46dee3442b913b362f2efac to your computer and use it in GitHub Desktop.
test-bootstrap.r:48: error: Repeated names for selectInput and radioButtons choices
Couldn't normalize path in `addResourcePath`, with arguments: `prefix` = 'font-awesome-5.3.1'; `directoryPath` = ''
1: radioButtons("id", "label", choiceNames = list(icon("calendar"), HTML("<p style=\"color:red;\">Red</p>"), "Normal"), choiceValues = list("icon", "html", "text")) at /home/alan/github/rstudio/shiny/tests/testthat/test-bootstrap.r:48
2: generateOptions(inputId, selected, inline, "radio", args$choiceNames, args$choiceValues) at /home/alan/github/rstudio/shiny/R/input-radiobuttons.R:96
3: mapply(choiceValues, choiceNames, FUN = function(value, name) {
inputTag <- tags$input(type = type, name = inputId, value = value)
if (value %in% selected)
inputTag$attribs$checked <- "checked"
pd <- processDeps(name, session)
if (inline) {
tags$label(class = paste0(type, "-inline"), inputTag, tags$span(pd$html, pd$deps))
}
else {
tags$div(class = type, tags$label(inputTag, tags$span(pd$html, pd$deps)))
}
}, SIMPLIFY = FALSE, USE.NAMES = FALSE) at /home/alan/github/rstudio/shiny/R/input-utils.R:64
4: (function (value, name)
{
inputTag <- tags$input(type = type, name = inputId, value = value)
if (value %in% selected)
inputTag$attribs$checked <- "checked"
pd <- processDeps(name, session)
if (inline) {
tags$label(class = paste0(type, "-inline"), inputTag, tags$span(pd$html, pd$deps))
}
else {
tags$div(class = type, tags$label(inputTag, tags$span(pd$html, pd$deps)))
}
})(dots[[1L]][[1L]], dots[[2L]][[1L]])
5: processDeps(name, session) at /home/alan/github/rstudio/shiny/R/input-utils.R:75
6: lapply(resolveDependencies(findDependencies(ui)), createWebDependency) at /home/alan/github/rstudio/shiny/R/html-deps.R:46
7: FUN(X[[i]], ...)
8: addResourcePath(prefix, dependency$src$file) at /home/alan/github/rstudio/shiny/R/html-deps.R:29
9: tryCatch(normalizePath(directoryPath, mustWork = TRUE), error = function(e) {
stop("Couldn't normalize path in `addResourcePath`, with arguments: ", "`prefix` = '", prefix, "'; `directoryPath` = '", directoryPath, "'")
}) at /home/alan/github/rstudio/shiny/R/server.R:59
10: tryCatchList(expr, classes, parentenv, handlers)
11: tryCatchOne(expr, names, parentenv, handlers[[1L]])
12: value[[3L]](cond)
13: stop("Couldn't normalize path in `addResourcePath`, with arguments: ", "`prefix` = '", prefix, "'; `directoryPath` = '", directoryPath, "'") at /home/alan/github/rstudio/shiny/R/server.R:61
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment