How to display the version # of a package created using Shiny to the users?

I am creating several packages using Shiny. How can I display the version # to the users? Is there another way besides getting it from sessionInfo()?

For example: Below is the first few lines of the DESCRIPTION file of my segmentation package. In this case, I'd like to show 1.0.0 to my users.

Package: segmentation
Type: Package
Title: Segmentation
Version: 1.0.0

Thank you!

Is read.dcf (from base R) useful for this purpose?

utils::packageVersion("segmentation") should do the job

1 Like