From 00f15e67f38b5c5f12754c566394130cbb873e10 Mon Sep 17 00:00:00 2001 From: rfaelens Date: Wed, 15 Jan 2020 14:07:02 +0100 Subject: [PATCH] Register sresourcePath onLoad, not onAttach This allows to use shinyBS using the `::` syntax, without requiring to load the package. --- R/misc.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/misc.R b/R/misc.R index 3238633..cbdf528 100644 --- a/R/misc.R +++ b/R/misc.R @@ -1,4 +1,4 @@ -.onAttach <- function(...) { +.onLoad <- function(...) { # Create link to javascript and css files for package shiny::addResourcePath("sbs", system.file("www", package="shinyBS"))