remove js dependency
This commit is contained in:
parent
351e44ee28
commit
9ea8c96206
@ -15,5 +15,4 @@ Imports:
|
||||
rlang,
|
||||
Rserve
|
||||
Suggests:
|
||||
testthat (>= 3.0.0),
|
||||
js
|
||||
testthat (>= 3.0.0)
|
||||
|
||||
@ -3,10 +3,7 @@ h3 <- function(x) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
# TODO: figure out how to format (modern) JS code from R?
|
||||
format_js <- function(x) {
|
||||
if (!requireNamespace("js", quietly = TRUE)) {
|
||||
return(x)
|
||||
}
|
||||
js::uglify_reformat(x, beautify = TRUE)
|
||||
x
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user