From 1c29c8dd09a0be66e64b5e544bf7c7b5384937be Mon Sep 17 00:00:00 2001 From: Tom Elliott Date: Wed, 22 Jan 2025 20:45:21 +1300 Subject: [PATCH] Rbuildignore node_modules --- .Rbuildignore | 1 + Makefile | 3 +++ R/compile.R | 4 ---- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.Rbuildignore b/.Rbuildignore index b0dba58..2a010db 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -1,3 +1,4 @@ ^LICENSE\.md$ ^README\.Rmd$ ^Makefile$ +node_modules diff --git a/Makefile b/Makefile index 9c45c42..ff55248 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,9 @@ document: install: document R CMD INSTALL . +check: + Rscript -e "devtools::check()" + README.md: README.Rmd install Rscript -e "rmarkdown::render('README.Rmd')" @rm README.html diff --git a/R/compile.R b/R/compile.R index 2a9aa7e..d3d11cd 100644 --- a/R/compile.R +++ b/R/compile.R @@ -50,10 +50,6 @@ ts_compile.character <- function( sprintf("export default {\n %s\n};", paste(ls(e), collapse = ",\n ")) ) - # if (file != "" && file.exists(file)) { - # stop(sprintf("File exists: %s", file)) - # return() - # } cat(src, file = file, sep = "\n") invisible()