Skip to content

pak install error with Unable to move package from cache to pkgdir #829

@sbamin

Description

@sbamin

There seems to be an issue each time moving a complied or cached package from tmp dir to package dir. Each time, I need to manually remove package from the package dir in order for pak::pak to run successfully. I checked my directory ACLS and they seem all good.

pak::pak("tidyplots")
✔ Loading metadata database ... done
 
→ Will install 1 package.
→ Will update 6 packages.
→ All 7 packages (0 B) are cached.
+ cachem            1.1.0 
+ fastmap   1.2.0 → 1.2.0 
+ magrittr  2.0.4 → 2.0.4 
+ ragg      1.5.0 → 1.5.0 
+ Rcpp      1.1.0 → 1.1.0 
+ S7        0.2.0 → 0.2.0 
+ tidyplots 0.3.1 → 0.3.1 [bld]
ℹ No downloads are needed, 7 pkgs are cached
Error: 
! error in pak subprocess
Caused by error in `install_extracted_binary(filename, lib_cache, pkg_cache, lib, …`:
! Unable to move package from .../renv/pkgs/4.2/_cache/file60b692abe6fd/fastmap
to ...renv/pkgs/4.2/fastmap

Also, a minor issue when installing or updating a package with pak::pak("pkgname"), often times pak command either reinstalls or rebuilds a package with an identical version. I cannot find if there is an option to skip this step while keeping an option enabled when reinstall/rebuild is required with version change for dependencies.

Thanks!

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