[PYTHON] [mac] Install R in pyenv + Jupyter-Lab environment

Purpose

Operation check environment

Prerequisites

Installation procedure

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.

スクリーンショット 2020-12-24 9.36.16.png

Related article

Recommended Posts

[mac] Install R in pyenv + Jupyter-Lab environment
Install rJava on Linux in R3.6 environment.
Install pyenv on mac
Use Anaconda in pyenv environment
Pip install in proxy environment
Byobu crashes in pyenv environment
Install Python environment on local PC (pyenv, venv on Mac)
Install scrapy in python anaconda environment
pyenv + pyenv-Automatically load the virtualenv environment in the virtualenv environment
Install Django in a pipenv virtual environment
Install CaboCha in a non-Anaconda environment (Win)
Install the package in an offline environment
Python3 TensorFlow environment construction (Mac and pyenv virtualenv)
Install python package in personal environment on Ubuntu
Install the python package in an offline environment
Install Python 3.5.1 + numpy + scipy + α in Windows environment
Install gensim in conda environment (and also install mecab)
Think about building a Python 3 environment in a Mac environment
Think about the analysis environment (Part 3: Install pyenv + Anaconda [Python, R] + jupyter + Rstudio)
Use jupyter-lab installed in python virtual environment (venv)
Remove old pyenv environment on Mac and update
[Docker] Create a jupyterLab (python) environment in 3 minutes!
Install LightGBM in an OS X virtualenv environment
Install Python3 on Mac and build environment [Definitive Edition]
Install Python venv --VSCode --GitHub integration environment on Mac
Procedure to install TensorFlow in fish shell environment (Anaconda 4.0.0)
[For beginners] Install the package in the Anaconda environment (Janome)
Build a Python environment on your Mac using pyenv
mac OS X 10.15.x pyenv Python If you can't install
Until you install TensorFlow-GPU with pip in Windows environment
How to install poetry (error handling) in zsh environment
Install Tensorflow on Mac
Install pip, pyenv, BeautifulSoup4
Install pyenv and pyenv-virtualenv
install diagrams in wsl
Pyenv + virtualenv on Mac
Anaconda-4.2.0-python3 environment construction (Mac)
Install Ansible on Mac
Install Python on Mac
Install Python 3 on Mac
Install python (pyenv, pyenv-virtualenv)
virtualenvwrapper in windows environment
R in Anaconda (in Ubuntu 14.04)
virtual environment in python
pyenv + fish environment construction
Install python with pyenv
Install Python 3.4 on Mac
Install Caffe on Mac
Install pyenv on OSX
Install mecab on mac
Mac environment construction Python
Install mecab-python on Mac
Pyxel environment construction (Mac)
Python environment construction on Mac (pyenv, virtualenv, anaconda, ipython notebook)
Build a machine learning environment on mac (pyenv, deeplearning, opencv)
Create a Python (pyenv / virtualenv) development environment on Mac (Homebrew)
Install Jupiter Notebook on Windows with pip in proxy environment
Install CaboCha in Ubuntu environment and call it with Python.
VScode environment construction (on Mac) & graph display in Python (@browser)