Skip to contents

Compare installations performed into your libraries by conan.

Usage

hipercow_provision_compare(curr = 0, prev = -1, driver = NULL, root = NULL)

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 where n indicates "the nth 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 where n indicates "the nth installation". The default of -1 indicates the previous installation. Must refer to an installation before curr. Use NULL 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

Value

An object of class conan_compare, which can be printed nicely.

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/RtmpUN1Cun/file194c390b7708
#> Library paths:
#>   - /tmp/RtmpUN1Cun/file194c390b7708/hipercow/lib
#>   - /opt/R/4.4.1/lib/R/site-library
#>   - /opt/R/4.4.1/lib/R/library
#> id: 20240816202113
#> Logs from pkgdepends follow:
#> 
#> -------------------------------------------------------------------------------
#> 
#> 
#> ── repos 
#> • https://cloud.r-project.org
#> 
#> ── refs 
#> • knitr
#> 
#>  Updated metadata database: 4.35 MB in 9 files.
#> 
#>  Updating metadata database
#>  Updating metadata database ... done
#> 
#> + evaluate   0.24.0 [bld][dl]
#> + highr      0.11   [bld][dl]
#> + knitr      1.48   [bld][dl]
#> + xfun       0.46   [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 0.24.0 (source) (28.68 kB)
#>  Got yaml 2.3.10 (source) (94.56 kB)
#>  Got xfun 0.46 (source) (158.39 kB)
#>  Got knitr 1.48 (source) (583.01 kB)
#>  Building evaluate 0.24.0
#>  Building xfun 0.46
#>  Building yaml 2.3.10
#>  Built evaluate 0.24.0 (1.6s)
#>  Installed evaluate 0.24.0  (32ms)
#>  Built xfun 0.46 (3.7s)
#>  Installed xfun 0.46  (1s)
#>  Building highr 0.11
#>  Built yaml 2.3.10 (4.9s)
#>  Installed yaml 2.3.10  (1s)
#>  Built highr 0.11 (1.3s)
#>  Installed highr 0.11  (1s)
#>  Building knitr 1.48
#>  Built knitr 1.48 (4.6s)
#>  Installed knitr 1.48  (1s)
#>  Summary:   5 new  in 20.2s
#> 
#> -------------------------------------------------------------------------------
#> Writing library description to 'hipercow/lib/.conan/20240816202113'
#> 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/RtmpUN1Cun/file194c390b7708
#> Library paths:
#>   - /tmp/RtmpUN1Cun/file194c390b7708/hipercow/lib
#>   - /opt/R/4.4.1/lib/R/site-library
#>   - /opt/R/4.4.1/lib/R/library
#> id: 20240816202135
#> Logs from pkgdepends follow:
#> 
#> -------------------------------------------------------------------------------
#> 
#> 
#> ── repos 
#> • https://cloud.r-project.org
#> 
#> ── refs 
#> • data.table
#>  Loading metadata database
#>  Loading metadata database ... done
#> 
#> + data.table   1.15.4 [bld][cmp]
#>  No downloads are needed, 1 pkg is cached
#>  Got data.table 1.15.4 (source) (5.39 MB)
#>  Building data.table 1.15.4
#>  Built data.table 1.15.4 (17.4s)
#>  Installed data.table 1.15.4  (52ms)
#>  Summary:   1 new  in 17.5s
#> 
#> -------------------------------------------------------------------------------
#> Writing library description to 'hipercow/lib/.conan/20240816202135'
#> Done!
hipercow_provision_compare()
#> ── Comparing conan installations ───────────────────────────────────────────────
#>20240816202113 1st; previous installation (less than a minute ago)
#>20240816202135 2nd; current installation (moments ago)
#> 
#> ── 5 unchanged packages ──
#> 
#>  To show unchanged packages, print with 'show_unchanged = TRUE'
#> 
#> ── 1 added package ──
#> 
#>data.table (1.15.4) CRAN

cleanup()
#>  Cleaning up example