as_workspace {AnVILPublish}R Documentation

Render R packages as AnVIL workspaces

Description

as_workspace() renders a package source tree (e.g., from a git checkout) as an AnVIL workspace.

Usage

as_workspace(
  path,
  namespace,
  name = NULL,
  create = FALSE,
  update = FALSE,
  use_readme = FALSE
)

Arguments

path

character(1) path to the location of the package source code.

namespace

character(1) AnVIL namespace (billing project) to be used.

name

character(1) AnVIL workspace name or NULL. If NULL, the workspace name is set to "Bioconductor-Package-<pkgname>", where <pkgname> is the name of the package (from the DESCRIPTION file) at path.

create

logical(1) Create a new project?

update

logical(1) Update (over-write the existing DASHBOARD and any similarly named notebooks) an existing workspace? If niether create nore update is TRUE, the code to create a workspace is run but no output generated; this can be useful during debugging.

use_readme

logical(1) Defaults to FALSE; if TRUE the content of README.md in package top-level folder is used with the package DESCRIPTION version and provenance metadata for rendering in the workspace 'DASHBOARD'.

Details

Information from the DESCRIPTION file and Rmd YAML files are used to populate the 'DASHBOARD' tab.

See `?as_notebook()` for details on how vignettes are processed
to notebooks, and the limitations of the current approach.

Value

as_workspace() returns the URL of the updated workspace, invisibly.


[Package AnVILPublish version 1.3.2 Index]