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
-n
indicates "n
installations ago" or a positive number wheren
indicates "then
th 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
-n
indicates "n
installations ago" or a positive number wheren
indicates "then
th installation". The default of -1 indicates the previous installation. Must refer to an installation beforecurr
. UseNULL
or-Inf
if 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-20241209-1e8527e30ddd
#> Library paths:
#> - /home/runner/work/_temp/hv-20241209-1e8527e30ddd/hipercow/lib
#> - /opt/R/4.4.2/lib/R/site-library
#> - /opt/R/4.4.2/lib/R/library
#> id: 20241209184351
#> Logs from pkgdepends follow:
#>
#> -------------------------------------------------------------------------------
#>
#>
#> ── repos
#> • https://cloud.r-project.org
#>
#> ── refs
#> • knitr
#>
#> ✔ Updated metadata database: 4.51 MB in 9 files.
#>
#> ℹ Updating metadata database
#> ✔ Updating metadata database ... done
#>
#> ! Failed to update system requirement mappings, will use cached mappings.
#> + evaluate 1.0.1 [bld][dl]
#> + highr 0.11 [bld][dl]
#> + knitr 1.49 [bld][dl]
#> + xfun 0.49 [bld][cmp][dl]
#> + yaml 2.3.10 [bld][cmp][dl]
#> ℹ Getting 5 pkgs with unknown sizes
#> ✔ Got highr 0.11 (source) (13.85 kB)
#> ✔ Got evaluate 1.0.1 (source) (34.87 kB)
#> ✔ Got xfun 0.49 (source) (166.43 kB)
#> ✔ Got yaml 2.3.10 (source) (94.56 kB)
#> ✔ Got knitr 1.49 (source) (545.75 kB)
#> ℹ Building evaluate 1.0.1
#> ℹ Building xfun 0.49
#> ℹ Building yaml 2.3.10
#> ✔ Built evaluate 1.0.1 (1.6s)
#> ✔ Installed evaluate 1.0.1 (31ms)
#> ✔ Built xfun 0.49 (4s)
#> ✔ Installed xfun 0.49 (1s)
#> ℹ Building highr 0.11
#> ✔ Built yaml 2.3.10 (6s)
#> ✔ Installed yaml 2.3.10 (23ms)
#> ✔ Built highr 0.11 (1.1s)
#> ✔ Installed highr 0.11 (1s)
#> ℹ Building knitr 1.49
#> ✔ Built knitr 1.49 (4.8s)
#> ✔ Installed knitr 1.49 (38ms)
#> ✔ Summary: 5 new in 19.7s
#>
#> -------------------------------------------------------------------------------
#> Writing library description to 'hipercow/lib/.conan/20241209184351'
#> 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-20241209-1e8527e30ddd
#> Library paths:
#> - /home/runner/work/_temp/hv-20241209-1e8527e30ddd/hipercow/lib
#> - /opt/R/4.4.2/lib/R/site-library
#> - /opt/R/4.4.2/lib/R/library
#> id: 20241209184412
#> Logs from pkgdepends follow:
#>
#> -------------------------------------------------------------------------------
#>
#>
#> ── repos
#> • https://cloud.r-project.org
#>
#> ── refs
#> • data.table
#> ℹ Loading metadata database
#> ✔ Loading metadata database ... done
#>
#> + data.table 1.16.4 [bld][cmp]
#> ℹ No downloads are needed, 1 pkg is cached
#> ✔ Got data.table 1.16.4 (source) (5.49 MB)
#> ℹ Building data.table 1.16.4
#> ✔ Built data.table 1.16.4 (21.2s)
#> ✔ Installed data.table 1.16.4 (60ms)
#> ✔ Summary: 1 new in 21.3s
#>
#> -------------------------------------------------------------------------------
#> Writing library description to 'hipercow/lib/.conan/20241209184412'
#> Done!
hipercow_provision_compare()
#> ── Comparing conan installations ───────────────────────────────────────────────
#> • 20241209184351 1st; previous installation (less than a minute ago)
#> • 20241209184412 2nd; current installation (moments ago)
#>
#> ── 5 unchanged packages ──
#>
#> ℹ To show unchanged packages, print with 'show_unchanged = TRUE'
#>
#> ── 1 added package ──
#>
#> • data.table (1.16.4) CRAN
cleanup()
#> ℹ Cleaning up example