Skip to content

Setup R in Anaconda

Mark Mikofski edited this page Apr 16, 2018 · 2 revisions

These features are still newish, so caveat emptor:

  1. Open anaconda prompt
    • Alternately start a CMD terminal and activate the root conda environment if you know the path to your Anaconda Scripts folder
> %LOCALAPPDATA%\Continuum\anaconda3\Scripts\activate.bat
  1. Create a new environment called “py36r” with r-essentials and rstudio, this adds Rstudio to your startmenu
(root)> conda -n py36r python==3.6.3 r-essentials rstudio
  1. Activate your new R conda-env and start R!
(root)> activate py36r
(py36r)> R
R version 3.4.2 (2017-09-28) -- "Short Summer"
Copyright (C) 2017 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)
> quit()
Clone this wiki locally