Compare installations performed into your libraries by conan.
Arguments
- curr
The previous installation to compare against. Can be a name (see hipercow_provision_list to get names), a negative number where
-nindicates "ninstallations ago" or a positive number wherenindicates "thenth installation". The default value of 0 corresponds to the current installation.- prev
The previous installation to compare against. Can be a name (see hipercow_provision_list to get names), a negative number where
-nindicates "ninstallations ago" or a positive number wherenindicates "thenth installation". The default of -1 indicates the previous installation. Must refer to an installation beforecurr. UseNULLor-Infif you want to compare against the empty installation.- driver
The name of the driver to use, or you can leave blank if only one is configured (this will be typical).
- root
The hipercow root
Examples
cleanup <- hipercow_example_helper()
#> ℹ This example uses a special helper
hipercow_provision("pkgdepends", refs = "knitr")
#> /`-'\ _______ ___ ___ ____
#> \,T./ / __/ _ \/ _ \/ _ `/ _ \
#> | \__/\___/_//_/\_,_/_//_/
#> | ---- THE LIBRARIAN ----
#>
#> Bootstrapping from: /home/runner/work/_temp/Library
#> Installing into library: hipercow/lib
#> Using method pkgdepends
#> Running in path: /home/runner/work/_temp/hv-20251013-20774a43d957
#> Library paths:
#> - /home/runner/work/_temp/hv-20251013-20774a43d957/hipercow/lib
#> - /opt/R/4.5.1/lib/R/site-library
#> - /opt/R/4.5.1/lib/R/library
#> id: 20251013164543
#> Logs from pkgdepends follow:
#>
#> -------------------------------------------------------------------------------
#>
#>
#> ── repos
#> • https://cloud.r-project.org
#>
#> ── refs
#> • knitr
#>
#> ✔ Updated metadata database: 4.77 MB in 9 files.
#>
#> ℹ Updating metadata database
#> ✔ Updating metadata database ... done
#>
#> + evaluate 1.0.5 [bld][dl]
#> + highr 0.11 [bld][dl]
#> + knitr 1.50 [bld][dl]
#> + xfun 0.53 [bld][cmp][dl]
#> + yaml 2.3.10 [bld][cmp][dl]
#> ℹ Getting 5 pkgs with unknown sizes
#> ✔ Got evaluate 1.0.5 (source) (39.32 kB)
#> ✔ Got highr 0.11 (source) (13.85 kB)
#> ✔ Got yaml 2.3.10 (source) (94.56 kB)
#> ✔ Got knitr 1.50 (source) (534.26 kB)
#> ✔ Got xfun 0.53 (source) (168.31 kB)
#> ℹ Building evaluate 1.0.5
#> ℹ Building xfun 0.53
#> ℹ Building yaml 2.3.10
#> ✔ Built evaluate 1.0.5 (1.8s)
#> ✔ Installed evaluate 1.0.5 (24ms)
#> ✔ Built xfun 0.53 (4.1s)
#> ✔ Installed xfun 0.53 (1s)
#> ℹ Building highr 0.11
#> ✔ Built yaml 2.3.10 (5.5s)
#> ✔ Installed yaml 2.3.10 (1s)
#> ✔ Built highr 0.11 (1.4s)
#> ✔ Installed highr 0.11 (1s)
#> ℹ Building knitr 1.50
#> ✔ Built knitr 1.50 (4.7s)
#> ✔ Installed knitr 1.50 (1s)
#> ✔ Summary: 5 new in 21.7s
#>
#> -------------------------------------------------------------------------------
#> Writing library description to 'hipercow/lib/.conan/20251013164543'
#> Done!
hipercow_provision("pkgdepends", refs = "data.table")
#> /`-'\ _______ ___ ___ ____
#> \,T./ / __/ _ \/ _ \/ _ `/ _ \
#> | \__/\___/_//_/\_,_/_//_/
#> | ---- THE LIBRARIAN ----
#>
#> Bootstrapping from: /home/runner/work/_temp/Library
#> Installing into library: hipercow/lib
#> Using method pkgdepends
#> Running in path: /home/runner/work/_temp/hv-20251013-20774a43d957
#> Library paths:
#> - /home/runner/work/_temp/hv-20251013-20774a43d957/hipercow/lib
#> - /opt/R/4.5.1/lib/R/site-library
#> - /opt/R/4.5.1/lib/R/library
#> id: 20251013164607
#> Logs from pkgdepends follow:
#>
#> -------------------------------------------------------------------------------
#>
#>
#> ── repos
#> • https://cloud.r-project.org
#>
#> ── refs
#> • data.table
#> ℹ Loading metadata database
#> ✔ Loading metadata database ... done
#>
#> + data.table 1.17.8 [bld][cmp]
#> ℹ No downloads are needed, 1 pkg is cached
#> ✔ Got data.table 1.17.8 (source) (5.81 MB)
#> ℹ Building data.table 1.17.8
#> ✔ Built data.table 1.17.8 (19.6s)
#> ✔ Installed data.table 1.17.8 (70ms)
#> ✔ Summary: 1 new in 19.6s
#>
#> -------------------------------------------------------------------------------
#> Writing library description to 'hipercow/lib/.conan/20251013164607'
#> Done!
hipercow_provision_compare()
#> ── Comparing conan installations ───────────────────────────────────────────────
#> • 20251013164543 1st; previous installation (less than a minute ago)
#> • 20251013164607 2nd; current installation (moments ago)
#>
#> ── 5 unchanged packages ──
#>
#> ℹ To show unchanged packages, print with 'show_unchanged = TRUE'
#>
#> ── 1 added package ──
#>
#> • data.table (1.17.8) CRAN
cleanup()
#> ℹ Cleaning up example
