The example follows installation of R package.
The current version on homebrew is 4.3.1. Need to install version 4.2.2
- Create a local tap
brew tap-new $USER/local-R
- Extract the required version from homebrew
brew extract --version=4.2.2 R rsingh/local-R
- Install the required version
brew install [email protected]