Skip to content

Commit

Permalink
sys.source all files
Browse files Browse the repository at this point in the history
  • Loading branch information
romainfrancois committed Oct 24, 2023
1 parent 8821ff0 commit 1665cc5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions share/jupyter/kernels/xr/R/setup.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ local({
"..", "share", "jupyter", "kernels", "xr", "R"
)

xeus_source <- function(...) {
sys.source(file.path(here, ...), envir = xeus_env)
}
files <- setdiff(list.files(here), "setup.R")

xeus_source("hello.R")
for (f in files) {
sys.source(file.path(here, f), envir = xeus_env)
}

})

0 comments on commit 1665cc5

Please sign in to comment.