How to install/library specific version of a package

Hi, I'm trying to use the PerformanceAnalytics package, but need specific version of some packages (namely ROI version 0.1-0, ROI.plugin.glpk version 0.0-2, and ROI.plugin.quadprog version 0.0-2) but I'm not sure how I'm supposed to library these specific versions as I've usually only dealt with the most up to date versions of packages. In R Studio I just need to use the install.packages function to install it from source from the package's archives, but since (from my understanding) Shiny doesn't allow install.packages, is there any other way to library these specific versions of these packages?

I use renv for my projects, also when I make shiny apps to deploy.
CRAN - Package renv (r-project.org)