add_import_component: takes a vector of strings, adds a Babel style import...

View source: R/utils.R

add_import_componentR Documentation

takes a vector of strings, adds a Babel style import statement

Description

takes a vector of strings, adds a Babel style import statement

Usage

add_import_component(
  target,
  component.name,
  component.path,
  keyword = "export default",
  package = FALSE
)

Arguments

target

vector to add import statement in.

component.name

name of component to import.

component.path

path to "import" from.

keyword

to use as anchor to add import statement.

package

is the import statement for a package? TODO: multiple or ⁠const {}⁠ JS way of importing.


ATFutures/geoplumber documentation built on July 4, 2023, 12:18 a.m.