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: /tmp/Rtmpw3JKrD/file16dc43e1908e
#> Library paths:
#> - /tmp/Rtmpw3JKrD/file16dc43e1908e/hipercow/lib
#> - /opt/R/4.4.1/lib/R/site-library
#> - /opt/R/4.4.1/lib/R/library
#> id: 20241008152525
#> Logs from pkgdepends follow:
#>
#> -------------------------------------------------------------------------------
#>
#>
#> ── repos
#> • https://cloud.r-project.org
#>
#> ── refs
#> • knitr
#>
#> ✔ Updated metadata database: 4.45 MB in 9 files.
#>
#> ℹ Updating metadata database
#> ✔ Updating metadata database ... done
#>
#> ! Failed to update system requirement mappings, will use cached mappings.
#> + evaluate 1.0.0 [bld][dl]
#> + highr 0.11 [bld][dl]
#> + knitr 1.48 [bld][dl]
#> + xfun 0.48 [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.0 (source) (34.81 kB)
#> ✔ Got yaml 2.3.10 (source) (94.56 kB)
#> ✔ Got xfun 0.48 (source) (164.96 kB)
#> ✔ Got knitr 1.48 (source) (583.01 kB)
#> ℹ Building evaluate 1.0.0
#> ℹ Building xfun 0.48
#> ℹ Building yaml 2.3.10
#> ✔ Built evaluate 1.0.0 (1.8s)
#> ✔ Installed evaluate 1.0.0 (1s)
#> ✔ Built xfun 0.48 (4.4s)
#> ✔ Installed xfun 0.48 (1s)
#> ℹ Building highr 0.11
#> ✔ Built yaml 2.3.10 (5.4s)
#> ✔ Installed yaml 2.3.10 (30ms)
#> ✔ Built highr 0.11 (931ms)
#> ✔ Installed highr 0.11 (18ms)
#> ℹ Building knitr 1.48
#> ✔ Built knitr 1.48 (4.7s)
#> ✔ Installed knitr 1.48 (1s)
#> ✔ Summary: 5 new in 20.3s
#>
#> -------------------------------------------------------------------------------
#> Writing library description to 'hipercow/lib/.conan/20241008152525'
#> 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: /tmp/Rtmpw3JKrD/file16dc43e1908e
#> Library paths:
#> - /tmp/Rtmpw3JKrD/file16dc43e1908e/hipercow/lib
#> - /opt/R/4.4.1/lib/R/site-library
#> - /opt/R/4.4.1/lib/R/library
#> id: 20241008152547
#> Logs from pkgdepends follow:
#>
#> -------------------------------------------------------------------------------
#>
#>
#> ── repos
#> • https://cloud.r-project.org
#>
#> ── refs
#> • data.table
#> ℹ Loading metadata database
#> ✔ Loading metadata database ... done
#>
#> + data.table 1.16.0 [bld][cmp]
#> ℹ No downloads are needed, 1 pkg is cached
#> ✔ Got data.table 1.16.0 (source) (5.30 MB)
#> ℹ Building data.table 1.16.0
#> ✔ Built data.table 1.16.0 (17.8s)
#> ✔ Installed data.table 1.16.0 (1.1s)
#> ✔ Summary: 1 new in 18.9s
#>
#> -------------------------------------------------------------------------------
#> Writing library description to 'hipercow/lib/.conan/20241008152547'
#> Done!
hipercow_provision_compare()
#> ── Comparing conan installations ───────────────────────────────────────────────
#> • 20241008152525 1st; previous installation (less than a minute ago)
#> • 20241008152547 2nd; current installation (moments ago)
#>
#> ── 5 unchanged packages ──
#>
#> ℹ To show unchanged packages, print with 'show_unchanged = TRUE'
#>
#> ── 1 added package ──
#>
#> • data.table (1.16.0) CRAN
cleanup()
#> ℹ Cleaning up example