Skip to content

Commit

Permalink
(hotfix) Bundle resources failed to launch
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinFay committed Jan 31, 2022
1 parent 5efc184 commit 0ceb94e
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 28 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: golem
Title: A Framework for Robust Shiny Applications
Version: 0.3.1.9007
Version: 0.3.1.9008
Authors@R:
c(person(given = "Colin",
family = "Fay",
Expand Down
57 changes: 30 additions & 27 deletions R/bundle_resources.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,20 @@
#' @export
#'
#' @return an htmlDependency
bundle_resources <- function(path,
app_title,
name = "golem_resources",
version = "0.0.1",
meta = NULL,
head = NULL,
attachment = NULL,
package = NULL,
all_files = TRUE,
app_builder = "golem",
with_sparkles = FALSE) {
bundle_resources <- function(
path,
app_title,
name = "golem_resources",
version = "0.0.1",
meta = NULL,
head = NULL,
attachment = NULL,
package = NULL,
all_files = TRUE,
app_builder = "golem",
with_sparkles = FALSE
) {
res <- list()
if (
length(
list.files(path)
Expand Down Expand Up @@ -88,21 +91,21 @@ bundle_resources <- function(path,
)
}
}
}

if (with_sparkles) {
res[[
length(res) + 1
]] <- htmlDependency(
"sparkles",
version = utils::packageVersion("golem"),
src = system.file(
"utils",
package = "golem"
),
script = "sparkle.js"
)
}

res
if (with_sparkles) {
res[[
length(res) + 1
]] <- htmlDependency(
"sparkles",
version = utils::packageVersion("golem"),
src = system.file(
"utils",
package = "golem"
),
script = "sparkle.js"
)
}
}

res
}

0 comments on commit 0ceb94e

Please sign in to comment.