-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreate_webR_repo.R
More file actions
29 lines (21 loc) · 883 Bytes
/
create_webR_repo.R
File metadata and controls
29 lines (21 loc) · 883 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Docker startup:
# docker run -it --rm -v ${PWD}/output:/output -w /output ghcr.io/r-wasm/webr:main R
install.packages("pak")
pak::pak("r-wasm/rwasm")
library(rwasm)
oldopt = options(
repos = c(
runiverse = "https://tidyverse.r-universe.dev",
jsonlite = 'https://jeroen.r-universe.dev',
data.table = 'https://rdatatable.r-universe.dev',
hexbin = 'https://edzer.r-universe.dev',
Hmisc = 'https://harrelfe.r-universe.dev',
cloud = "https://cloud.r-project.org",
wasm = 'https://repo.r-wasm.org'
)
)
pak::meta_update()
# rwasm::add_pkg("resourcecode",dependencies=TRUE)
# rwasm::add_pkg("Resourcecode-project/r-resourcecodedata")
rwasm::add_pkg(c("jsonlite","dplyr","ggplot2","hexbin"), dependencies = NA)
rwasm::make_vfs_library(compress = TRUE,strip = c("demo", "doc", "examples", "help", "html", "include", "tests", "vignette"))