Skip to content

renv::update() with pak errors when packages =NULL #2037

@Aariq

Description

@Aariq

Without pak enabled, renv::update() with no arguments updates all packages in the lockfile. With pak enabled, it errors as follows:

> renv::update()
Error: 
! error in pak subprocess
Caused by error in `find_package_root(path = root)`:
! Could not find R package in `/Users/ericscott/Documents/GitHub/usa-npn/thermal-trends` or its parent directories.
Type .Last.error to see the more details.
Traceback (most recent calls last):
6: renv::update()
5: renv_pak_install(packages = packages, library = libpaths, rebuild = rebuild, 
       type = type, prompt = prompt, project = project)
4: pak$local_install_dev_deps(root = project, lib = lib, ask = prompt)
3: remote(function(...) {
       get("local_install_dev_deps_make_plan", asNamespace("pak"))(...)
   }, list(root = root, lib = lib, upgrade = upgrade, start = start, 
       dependencies = dependencies, loaded = loaded_packages(lib)))
2: err$throw(res$error)
1: base::stop(cond)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions