Package install R with Homebrew.
% brew casc install r
Enable the pyenv environment of the installation destination and start the R console from the terminal.
% pyenv local testenv
(testenv) % R
---
R version 4.0.3 (2020-10-10) -- "Bunny-Wunnies Freak Out"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin20.1.0 (64-bit)
(...Abbreviation...)
>
Install IRkernel and register the kernel.
> install.packages('IRkernel')
> IRkernel::installspec()
Start Jupyter Lab and make sure the R kernel is available.
Recommended Posts