Describe the problem
I'm using bs_theme in my package (spada).
I create an internal object (not exported) for theming the app and call him in page_navbar(theme = spada_theme). The object is createad as:
spada_theme <- bs_theme(version = 5, ........ ).
When the package ara installed from CRAN (binaries) it is raised an error when calling the function that calls the shiny app:
An error has occurred!
Error: File to import not found or unreadable: D:\RCompile\CRANpkg\lib\4.5\bslib\lib\bs5\scss_functions.scss. on line 1:1 of stdin >> @import "D:\RCompile\CRANpkg\lib\4.5\bslib\lib\bs5\scss\_functions. ^
If the package is installed from tar.gz with install.packages('spada', type = 'source') the error is not raised.
Reprex
install.packages('spada')
library(spada)
spada()
Image of the error:

```
Calling the object in R:
spada:::spada_theme
/* Sass Bundle: _utilities, _root, _reboot, _type, _images, _containers, _grid, _tables, _forms, _buttons, _transitions, _dropdown, _button-group, _nav, _navbar, _card, _accordion, _breadcrumb, _pagination, _badge, _alert, _progress, _list-group, _close, _toasts, _modal, _tooltip, _popover, _carousel, _spinners, _offcanvas, _placeholders, _helpers, _api, bs3compat, builtin */
@import "D:\\RCompile\\CRANpkg\\lib\\4.5\\bslib\\lib\\bs5\\scss\\_functions.scss";
@import "D:\\RCompile\\CRANpkg\\lib\\4.5\\bslib\\bslib-scss\\functions.scss";
....
As looking inside the package can be time wasting i tried to replicate the structure of the package here:
https://github.com/lgschuck/pkg.bs.theme
I could reproduce the same issue generating a binarie:
devtools::build(binary = TRUE, args = c('--preclean'))
install.packages(
"../pkg.bs.theme_0.0.1.zip",
repos = NULL,
type = "win.binary"
)
library(pkg.bs.theme)
run_app()
If the original folder of bslib does not exist the error is raised:
I do not know if this is a real issue or i should do some thing diferent using bs_theme inside my package.
Anyway thanks for the help.
Session Info
Details
devtools::session_info()
─ Session info ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
setting value
version R version 4.5.3 (2026-03-11 ucrt)
os Windows 11 x64 (build 26200)
system x86_64, mingw32
ui RStudio
language (EN)
collate Portuguese_Brazil.utf8
ctype Portuguese_Brazil.utf8
tz America/Sao_Paulo
date 2026-07-09
rstudio 2026.06.0+242 Blue Plumbago (desktop)
pandoc NA
quarto 1.9.38 @ C:\\PROGRA~1\\Quarto\\bin\\quarto.exe
─ Packages ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
package * version date (UTC) lib source
boot 1.3-32 2025-08-29 [2] CRAN (R 4.5.3)
bsicons 0.1.2 2023-11-04 [1] CRAN (R 4.5.3)
bslib 0.11.0 2026-05-16 [1] CRAN (R 4.5.3)
cachem 1.1.0 2024-05-16 [1] CRAN (R 4.5.3)
cellranger 1.1.0 2016-07-27 [1] CRAN (R 4.5.3)
class 7.3-23 2025-01-01 [2] CRAN (R 4.5.3)
cli 3.6.6 2026-04-09 [1] CRAN (R 4.5.3)
collapse 2.1.7 2026-05-19 [1] CRAN (R 4.5.3)
data.table 1.18.4 2026-05-06 [1] CRAN (R 4.5.3)
DescTools 0.99.60 2025-03-28 [1] CRAN (R 4.5.3)
devtools 2.5.2 2026-04-30 [1] CRAN (R 4.5.3)
digest 0.6.39 2025-11-19 [1] CRAN (R 4.5.3)
dplyr 1.2.1 2026-04-03 [1] CRAN (R 4.5.3)
e1071 1.7-17 2025-12-18 [1] CRAN (R 4.5.3)
ellipsis 0.3.3 2026-04-04 [1] CRAN (R 4.5.3)
Exact 3.3 2024-07-21 [1] CRAN (R 4.5.2)
expm 1.0-0 2024-08-19 [1] CRAN (R 4.5.3)
farver 2.1.2 2024-05-13 [1] CRAN (R 4.5.3)
fastmap 1.2.0 2024-05-15 [1] CRAN (R 4.5.3)
forcats 1.0.1 2025-09-25 [1] CRAN (R 4.5.3)
fs 2.1.0 2026-04-18 [1] CRAN (R 4.5.3)
generics 0.1.4 2025-05-09 [1] CRAN (R 4.5.3)
ggplot2 4.0.3 2026-04-22 [1] CRAN (R 4.5.3)
gld 2.6.8 2025-09-14 [1] CRAN (R 4.5.3)
glue 1.8.1 2026-04-17 [1] CRAN (R 4.5.3)
gt 1.3.0 2026-01-22 [1] CRAN (R 4.5.3)
gtable 0.3.6 2024-10-25 [1] CRAN (R 4.5.3)
haven 2.5.5 2025-05-30 [1] CRAN (R 4.5.3)
hms 1.1.4 2025-10-17 [1] CRAN (R 4.5.3)
htmltools 0.5.9 2025-12-04 [1] CRAN (R 4.5.3)
httpuv 1.6.17 2026-03-18 [1] CRAN (R 4.5.3)
httr 1.4.8 2026-02-13 [1] CRAN (R 4.5.3)
jquerylib 0.1.4 2021-04-26 [1] CRAN (R 4.5.3)
jsonlite 2.0.0 2025-03-27 [1] CRAN (R 4.5.3)
later 1.4.8 2026-03-05 [1] CRAN (R 4.5.3)
lattice 0.22-9 2026-02-09 [2] CRAN (R 4.5.3)
lifecycle 1.0.5 2026-01-08 [1] CRAN (R 4.5.3)
lmom 3.3 2026-03-24 [1] CRAN (R 4.5.3)
magrittr 2.0.5 2026-04-04 [1] CRAN (R 4.5.3)
MASS 7.3-65 2025-02-28 [2] CRAN (R 4.5.3)
Matrix 1.7-4 2025-08-28 [2] CRAN (R 4.5.3)
memoise 2.0.1 2021-11-26 [1] CRAN (R 4.5.3)
mime 0.13 2025-03-17 [1] CRAN (R 4.5.2)
mirai 2.7.1 2026-06-01 [1] CRAN (R 4.5.3)
mvtnorm 1.4-1 2026-06-06 [1] CRAN (R 4.5.3)
nanonext 1.10.0 2026-07-02 [1] CRAN (R 4.5.3)
otel 0.2.0 2025-08-29 [1] CRAN (R 4.5.3)
pillar 1.11.1 2025-09-17 [1] CRAN (R 4.5.3)
pkgbuild 1.4.8 2025-05-26 [1] CRAN (R 4.5.3)
pkgconfig 2.0.3 2019-09-22 [1] CRAN (R 4.5.3)
pkgload 1.5.3 2026-06-15 [1] CRAN (R 4.5.3)
promises 1.5.0 2025-11-01 [1] CRAN (R 4.5.3)
proxy 0.4-29 2025-12-29 [1] CRAN (R 4.5.3)
purrr 1.2.2 2026-04-10 [1] CRAN (R 4.5.3)
qs2 0.2.2 2026-06-03 [1] CRAN (R 4.5.3)
R6 2.6.1 2025-02-15 [1] CRAN (R 4.5.3)
RColorBrewer 1.1-3 2022-04-03 [1] CRAN (R 4.5.2)
Rcpp 1.1.2 2026-07-05 [1] CRAN (R 4.5.3)
RcppParallel 5.1.11-2 2026-03-05 [1] CRAN (R 4.5.3)
readr 2.2.0 2026-02-19 [1] CRAN (R 4.5.3)
readxl 1.5.0 2026-05-16 [1] CRAN (R 4.5.3)
rlang 1.3.0 2026-07-05 [1] CRAN (R 4.5.3)
rootSolve 1.8.2.4 2023-09-21 [1] CRAN (R 4.5.2)
rstudioapi 0.19.0 2026-06-11 [1] CRAN (R 4.5.3)
S7 0.2.2 2026-04-22 [1] CRAN (R 4.5.3)
sass 0.4.10 2025-04-11 [1] CRAN (R 4.5.3)
scales 1.4.0 2025-04-24 [1] CRAN (R 4.5.3)
sessioninfo 1.2.4 2026-06-04 [1] CRAN (R 4.5.3)
shiny 1.14.0 2026-06-21 [1] CRAN (R 4.5.3)
shinyWidgets 0.9.1 2026-03-09 [1] CRAN (R 4.5.3)
spada * 0.1.6 2026-06-11 [1] CRAN (R 4.5.3)
stringfish 0.19.0 2026-04-21 [1] CRAN (R 4.5.3)
tibble 3.3.1 2026-01-11 [1] CRAN (R 4.5.3)
tidyselect 1.2.1 2024-03-11 [1] CRAN (R 4.5.3)
tzdb 0.5.0 2025-03-15 [1] CRAN (R 4.5.3)
usethis 3.2.1 2025-09-06 [1] CRAN (R 4.5.3)
vctrs 0.7.3 2026-04-11 [1] CRAN (R 4.5.3)
waiter 0.2.5.1 2025-09-23 [1] CRAN (R 4.5.3)
withr 3.0.3 2026-06-19 [1] CRAN (R 4.5.3)
writexl 1.5.4 2025-04-15 [1] CRAN (R 4.5.3)
xml2 1.6.0 2026-06-22 [1] CRAN (R 4.5.3)
xtable 1.8-8 2026-02-22 [1] CRAN (R 4.5.3)
[1] C:/Users/luisg/OneDrive/Área de Trabalho/r/.spada_libs/r4.5_cran
[2] C:/Program Files/R/R-4.5.3/library
── Packages attached to the search path.
Describe the problem
I'm using bs_theme in my package (spada).
I create an internal object (not exported) for theming the app and call him in page_navbar(theme = spada_theme). The object is createad as:
spada_theme <- bs_theme(version = 5, ........ ).When the package ara installed from CRAN (binaries) it is raised an error when calling the function that calls the shiny app:
An error has occurred!
Error: File to import not found or unreadable: D:\RCompile\CRANpkg\lib\4.5\bslib\lib\bs5\scss_functions.scss. on line 1:1 of stdin >> @import "D:\RCompile\CRANpkg\lib\4.5\bslib\lib\bs5\scss\_functions. ^
If the package is installed from tar.gz with install.packages('spada', type = 'source') the error is not raised.
Reprex
Image of the error:
Calling the object in R:
As looking inside the package can be time wasting i tried to replicate the structure of the package here:
https://github.com/lgschuck/pkg.bs.theme
I could reproduce the same issue generating a binarie:
If the original folder of bslib does not exist the error is raised:
I do not know if this is a real issue or i should do some thing diferent using bs_theme inside my package.
Anyway thanks for the help.
Session Info
Details
── Packages attached to the search path.