remove js dependency

This commit is contained in:
Tom Elliott 2025-01-22 21:02:24 +13:00
parent 351e44ee28
commit 9ea8c96206
2 changed files with 3 additions and 7 deletions

View File

@ -15,5 +15,4 @@ Imports:
rlang, rlang,
Rserve Rserve
Suggests: Suggests:
testthat (>= 3.0.0), testthat (>= 3.0.0)
js

View File

@ -3,10 +3,7 @@ h3 <- function(x) {
} }
# TODO: figure out how to format (modern) JS code from R?
format_js <- function(x) { format_js <- function(x) {
if (!requireNamespace("js", quietly = TRUE)) { x
return(x)
}
js::uglify_reformat(x, beautify = TRUE)
} }