Shoot, my first reply seems to have disappeared, so I'm reposting.
I cannot update the packages in my lock file. I work at a large pharma company and we have a server which hosts a highly regulated and controlled R environment. I also have a local machine where I can have whatever R environment I want. I'm using renv to try and ensure my local machine R environment is as close to our server as possible (at least same version of R, package versions, and install locations).
On my local machine, renv::status() didn't seem like it gave a useful output, so to answer your question, I tried using packageVersion() instead. See below for ouputs.
renv::status()
The following package(s) are no longer used in this project:
_
packrat [0.7.0]
rsconnect [0.8.24]
Use renv::snapshot() to remove them from the lockfile.
packageVersion("rmarkdown")
[1] ‘2.11’
packageVersion("bslib")
Error in packageVersion("bslib") : there is no package called ‘bslib’
packageVersion("htmltools")
[1] ‘0.5.1.1’
On my server, we do have bslib (see below on command from server), so I guess if I need to, I could add bslib to the list of packages that renv pulls in, if you think I should. Right now I do it by just having a dummy Rmd file that calls these packages for no reason, other than to be pulled into renv. If that's what I should do and there's a better way to do it, let me know!
R 4.1.0> packageVersion("bslib")
[1] ‘0.2.5.1’