I have installed R from Home-brew in macOS:
brew install R
Right now, though, I would need to switch the version and install a specific R version. For this reason I tried, without success, to install R-3.5.2 in both this ways:
brew install R-3.5.2
brew install R@3.5.2
This is what I get:
Error: No available formula with the name "r@3.5.2"
==> Searching for a previously deleted formula (in the last month)...
Warning: homebrew/core is shallow clone. To get complete history run:
git -C "$(brew --repo homebrew/core)" fetch --unshallow
Error: No previously deleted formula found.
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
==> Searching taps on GitHub...
Error: No formulae found in taps.
Do you have any idea? Thanks : )