diff --git a/DESCRIPTION b/DESCRIPTION index 158be21c4..137e2c75f 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -27,9 +27,8 @@ Imports: grDevices, lifecycle (>= 0.2.0), rlang (>= 1.1.0), - shiny (>= 1.6.0), - styler (>= 1.2.0) Suggests: + shiny (>= 1.6.0), cli (>= 3.4.0), knitr (>= 1.42), magrittr (>= 1.5), @@ -48,7 +47,6 @@ Language: en-US Roxygen: list(markdown = TRUE) RoxygenNote: 7.2.3 Collate: - 'include_css_js.R' 'qenv-class.R' 'qenv-errors.R' 'qenv-concat.R' diff --git a/NAMESPACE b/NAMESPACE index eeab3cf32..a122e287b 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -21,7 +21,5 @@ exportMethods(join) exportMethods(new_qenv) exportMethods(show) import(grDevices) -import(shiny) importFrom(lifecycle,badge) importFrom(methods,show) -importFrom(styler,style_text) diff --git a/R/include_css_js.R b/R/include_css_js.R deleted file mode 100644 index 85464fb3c..000000000 --- a/R/include_css_js.R +++ /dev/null @@ -1,21 +0,0 @@ -#' Include `CSS` files from `/inst/css/` package directory to application header -#' -#' `system.file` should not be used to access files in other packages, it does -#' not work with `devtools`. Therefore, we redefine this method in each package -#' as needed. Thus, we do not export this method -#' -#' @param pattern (`character`) pattern of files to be included -#' -#' @return HTML code that includes `CSS` files -#' @keywords internal -include_css_files <- function(pattern = "*") { - css_files <- list.files( - system.file("css", package = "teal.code", mustWork = TRUE), - pattern = pattern, full.names = TRUE - ) - if (length(css_files) == 0) { - return(NULL) - } - - shiny::singleton(lapply(css_files, shiny::includeCSS)) -} diff --git a/R/teal.code-package.R b/R/teal.code-package.R index f4a0a1fb5..2d806c346 100644 --- a/R/teal.code-package.R +++ b/R/teal.code-package.R @@ -7,7 +7,5 @@ #' @keywords internal "_PACKAGE" -#' @import shiny #' @importFrom lifecycle badge -#' @importFrom styler style_text NULL diff --git a/inst/css/debug_info_fa.css b/inst/css/debug_info_fa.css deleted file mode 100644 index cfe444247..000000000 --- a/inst/css/debug_info_fa.css +++ /dev/null @@ -1,3 +0,0 @@ -/* used by get_eval_details_ui */ -.fa-stack-1x,.fa-stack-2x {margin-top: -15px;} -.fa-stack {height: 0;} diff --git a/man/include_css_files.Rd b/man/include_css_files.Rd deleted file mode 100644 index 76ac430da..000000000 --- a/man/include_css_files.Rd +++ /dev/null @@ -1,20 +0,0 @@ -% Generated by roxygen2: do not edit by hand -% Please edit documentation in R/include_css_js.R -\name{include_css_files} -\alias{include_css_files} -\title{Include \code{CSS} files from \verb{/inst/css/} package directory to application header} -\usage{ -include_css_files(pattern = "*") -} -\arguments{ -\item{pattern}{(\code{character}) pattern of files to be included} -} -\value{ -HTML code that includes \code{CSS} files -} -\description{ -\code{system.file} should not be used to access files in other packages, it does -not work with \code{devtools}. Therefore, we redefine this method in each package -as needed. Thus, we do not export this method -} -\keyword{internal}