I have noticed a few times that in pak when i try to install remote repos (gh in this case) that the builds fail, but then i try on renv same install and it builds fine. what could be the root of that?
> pak::pkg_install('Azure/Microsoft365R')
v Loading metadata database
> Will update 1 package.
> Will download 1 package with unknown size.
+ Microsoft365R 2.2.0 > 2.2.1 [bld][cmp][dl] (GitHub: 31ff33b)
? Do you want to continue (Y/n) y
i Getting 1 pkg with unknown size
v Got Microsoft365R 2.2.1 (source) (201.39 kB)
v Downloaded 1 package (201.39 kB)in 1.9s
i Packaging Microsoft365R 2.2.1
v Packaged Microsoft365R 2.2.1 (3.9s)
i Building Microsoft365R 2.2.1
x Failed to build Microsoft365R 2.2.1
Error: Failed to build source package 'Microsoft365R'
Type .Last.error.trace to see where the error occurred
[Yesterday 10:15 AM] Yoni Sidi
> pak::pkg_install('Azure/Microsoft365R')
> Will install 4 packages.
> Will download 3 CRAN packages (1.51 MB).
> Will download 1 package with unknown size.
+ AzureAuth 1.3.2 [dl] (455.62 kB)
+ AzureGraph 1.3.1 [dl] (580.90 kB)
+ jose 1.0 [dl] (474.87 kB)
+ Microsoft365R 2.2.0 [bld][cmp][dl] (GitHub: 2d7d43a)
i Getting 3 pkgs (1.51 MB) and 1 pkg with unknown size
v Got Microsoft365R 2.2.0 (source) (199.84 kB)
v Got AzureAuth 1.3.2 (windows) (455.67 kB)
v Got jose 1.0 (windows) (474.87 kB)
v Got AzureGraph 1.3.1 (windows) (580.90 kB)
v Downloaded 4 packages (1.71 MB)in 1.1s
v Installed AzureAuth 1.3.2 (181ms)
v Installed AzureGraph 1.3.1 (231ms)
v Installed jose 1.0 (285ms)
i Packaging Microsoft365R 2.2.0
v Packaged Microsoft365R 2.2.0 (1.4s)
i Building Microsoft365R 2.2.0
x Failed to build Microsoft365R 2.2.0
Error: Failed to build source package 'Microsoft365R'
Type .Last.error.trace to see where the error occurred
> .Last.error.trace
Stack trace:
12. (function (...) ...
13. base:::withCallingHandlers(cli_message = function(msg) { ...
14. get("pkg_install_do_plan", asNamespace("pak"))(...)
15. pkgdepends::install_package_plan(plan = plan, lib = lib, num_workers = num_ ...
16. base:::withCallingHandlers({ ...
17. pkgdepends:::handle_events(state, events)
18. pkgdepends:::handle_event(state, i)
19. pkgdepends:::stop_task(state, worker)
20. pkgdepends:::stop_task_build(state, worker)
21. base:::throw(new_pkg_build_error("Failed to build source package {pkg}", ...
22. base:::signalCondition(cond)
23. (function (e) ...
24. base:::stop(e)
25. (function (e) ...
x Failed to build source package 'Microsoft365R'
> renv::install('Azure/Microsoft365R')
Retrieving 'https://api.github.com/repos/Azure/Microsoft365R/tarball/31ff33bca4ebb34d97fb00ce8b3dbec0049d5fa8' ...
OK [downloaded 134.7 Kb in 0.7 secs]
Installing Microsoft365R [2.2.1] ...
OK [built from source]
I have noticed a few times that in pak when i try to install remote repos (gh in this case) that the builds fail, but then i try on renv same install and it builds fine. what could be the root of that?
si