pbs-assess / pacea

An R package to house Pacific Region ecosystem data to help facilitate an ecosystem approach to fisheries.
Other
14 stars 0 forks source link

Add function for users to see when they last installed the package #46

Closed andrew-edwards closed 11 months ago

andrew-edwards commented 11 months ago

This should pretty much work, just need to make it into a function:

paste0(.libPaths(), "/pacea/DESCRIPTION"))$ctime %>% lubridate::as_date()

Think it should be platform independent. People can then compare the date with the latest update to the package.

seananderson commented 11 months ago

or packageVersion("pacea")

andrew-edwards commented 11 months ago

Done with pacea_installed() [avoids having to always update package version], and added to talk and README.