engine: Set Engine

engineR Documentation

Set Engine

Description

Defines the engine to use with packer. One can pick between npm and yarn.

Usage

engine_set(engine = c("npm", "yarn"))

engine_get()

engine_adapt()

engine_which()

Arguments

engine

The engine to use, npm or yarn.

Details

Generally one would want to define the engine prior to scaffolding. For convenience you can instead set the environment variable PACKER_ENGINE to your engine of choice. Packer reads this variable, all subsequent use of packer will use the defined engine. You can use the function usethis::edit_r_environ to do so.

Functions

  • engine_set: Define the engine to use for the project.

  • engine_get: Retrieve the default engine.

  • engine_which: Retrieve which engine the project is set to use-.

  • engine_adapt: Change the engine to match that of the poject.


packer documentation built on May 28, 2022, 5:06 p.m.