Defines the engine to use with packer. One can pick between npm and yarn.
engine_set(engine = c("npm", "yarn"))engine_get()
engine_adapt()
engine_which()
The engine to use, npm or yarn.
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.
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.