Skip to content

Commit 1b4ae76

Browse files
committed
Merge feature/issue-14: Fix addResourcePath error by moving CSS to inst/www
Closes #14 * feature/issue-14: Fix addResourcePath error by moving CSS to inst/www and using system.file()
2 parents c65bee2 + d9b981a commit 1b4ae76

3 files changed

Lines changed: 2 additions & 2 deletions

File tree

R/shinyapp_components.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1070,7 +1070,7 @@ viewseurat_server <- function(input, output, session) {
10701070
guts_dep <- htmltools::htmlDependency(
10711071
name = "guts-tabset-styles",
10721072
version = "1.0",
1073-
src = normalizePath("www"),
1073+
src = system.file("www", package = "viewseurat"),
10741074
stylesheet = "guts-scoped.css",
10751075
all_files = FALSE
10761076
)

tests/testthat/test-guts-css-scoping.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# Fix: CSS lives in www/guts-scoped.css with every selector prefixed by
88
# .guts-tabset, and is loaded only when the Guts tab renders.
99

10-
css_path <- function() test_path("../../www/guts-scoped.css")
10+
css_path <- function() system.file("www/guts-scoped.css", package = "viewseurat")
1111

1212
# -- www/guts-scoped.css exists and is scoped ----------------------------------
1313

0 commit comments

Comments
 (0)