79153242

Date: 2024-11-03 17:15:50
Score: 0.5
Natty:
Report link

The issue you're experiencing is because recent versions of bslib handle Node dependencies differently. Instead of looking for node_modules directly, you can try this approach:

# Get the bslib installation path
bslib_path <- system.file(package = "bslib")

# Check for the actual Bootstrap files
bootstrap_path <- file.path(bslib_path, "lib", "bs")

# If you need specific Bootstrap files, you can look here:
bs_files <- list.files(bootstrap_path, recursive = TRUE)

The Bootstrap files are now typically located in the lib/bs directory within the package installation path. If you're trying to access specific Bootstrap components, you might want to use bslib's built-in functions instead of accessing the files directly:

library(bslib)

# Use bs_theme() to customize Bootstrap
my_theme <- bs_theme(version = 5)  # or whichever version you need

What specific Bootstrap components are you trying to access? This might help me provide a more targeted solution.

Reasons:
  • Blacklisted phrase (1): help me
  • Whitelisted phrase (-1): try this
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Thiago Cezário