Skip to content

Instantly share code, notes, and snippets.

@alandipert alandipert/err.txt
Created Aug 2, 2019

Embed
What would you like to do?
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
You can’t perform that action at this time.