'Translate proj4string into WKT using R

I'm relatively new to displaying geographic data outside of ArcGIS, and I just inherited an R Shiny app that sets a coordinate reference system using a proj4string, which I learned is now obsolete.

Previously, the app used this command: dat$myCRS <- sp::CRS("+proj=lcc +lat_1=44.299999 +lat_2=44.99999 +lat_0=44.300003 +lon_0=-114.7 +x_0=0 +y_0=0 +units=m +datum=WGS84 +no_defs +type=crs"). I think this is the part that's now obsolete, and I'm unsure how to convert that proj4string to a WKT, either by specifying an EPSG code (such as in this page), or by building a WKT by hand. I also found this question, and it appears to be similar but the reverse of what I'm trying to do?

Thanks!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source