From fb3f43aeaf249a3bda8ff5af782a49ca3ea77473 Mon Sep 17 00:00:00 2001 From: George Stagg Date: Mon, 30 Oct 2023 13:52:37 +0000 Subject: [PATCH] Keep styler happy --- R/lib.R | 6 ++++-- R/repo.R | 8 ++++++-- man/rwasm-package.Rd | 9 ++++++++- 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/R/lib.R b/R/lib.R index 4bf1a98..a353fc8 100644 --- a/R/lib.R +++ b/R/lib.R @@ -105,8 +105,10 @@ make_vfs_repo <- function(repo_dir = "./repo") { #' @inheritDotParams make_library strip #' #' @export -make_vfs_library <- function(out_dir = "./vfs", out_name = "library.data", - repo_dir = "./repo", ...) { +make_vfs_library <- function(out_dir = "./vfs", + out_name = "library.data", + repo_dir = "./repo", + ...) { lib_dir <- fs::path(tempfile()) lib_abs <- fs::path_abs(lib_dir) on.exit(unlink(lib_dir, recursive = TRUE), add = TRUE) diff --git a/R/repo.R b/R/repo.R index 950a6e5..eefb5b4 100644 --- a/R/repo.R +++ b/R/repo.R @@ -83,7 +83,9 @@ add_list <- function(list_file, ...) { #' @importFrom dplyr rows_update select #' @importFrom pkgdepends new_pkg_download_proposal #' @export -add_pkg <- function(packages, remotes = NULL, repo_dir = "./repo", +add_pkg <- function(packages, + remotes = NULL, + repo_dir = "./repo", dependencies = NA) { # Set up pkgdepends configuration config <- ppm_config @@ -179,7 +181,9 @@ make_remote_tarball <- function(pkg, url, target, contrib_src) { # Build packages and update a CRAN-like repo on disk #' @importFrom rlang .data -update_repo <- function(package_info, remotes = NULL, repo_dir = "./repo") { +update_repo <- function(package_info, + remotes = NULL, + repo_dir = "./repo") { r_version <- R_system_version(getOption("rwasm.webr_version")) writeLines(sprintf("Processing %d package(s).", nrow(package_info))) diff --git a/man/rwasm-package.Rd b/man/rwasm-package.Rd index 145e361..bb3cfe5 100644 --- a/man/rwasm-package.Rd +++ b/man/rwasm-package.Rd @@ -6,7 +6,14 @@ \alias{rwasm-package} \title{rwasm: Build R Packages for WebAssembly} \description{ -Utilities to help build R packages compiled for WebAssembly, manage binary WebAssembly R package libraries and repositories, and prepare webR compatible filesystem images for static web hosting of selected data files and R packages. +Utility functions to help build R packages compiled for WebAssembly (Wasm), manage Wasm binary R package libraries and repositories, and prepare webR compatible filesystem images for static web hosting of data files and R packages. +} +\seealso{ +Useful links: +\itemize{ + \item \url{https://r-wasm.github.io/webr-repo/} +} + } \author{ \strong{Maintainer}: George Stagg \email{george.stagg@posit.co}