Instalación de R con Homebrew
Estoy intentando instalar R usando Homebrew. Ejecuté estos comandos que se recomiendan en otro lugar en SO:
brew tap homebrew/science
brew install R
Para brew tap homebrew/science
, estoy recibiendo este error:
Error: Already tapped!
Para el segundo mandamiento, recibo esto:
Error: No available formula for r
Alguna sugerencia?
11 answers
A partir de 2017, es solo brew install r
. Vea la respuesta de @Andrew abajo.
A partir de 2014 (usando un Yosemite), el método es el siguiente:
brew tap homebrew/science
brew install Caskroom/cask/xquartz
brew install r
El paquete gcc
(se instalará automáticamente como una dependencia requerida) en el homebrew/science
tap ya contiene el último compilador fortran (gfortran
), y sobre todo: todo el paquete está precompilado por lo que le ahorra mucho tiempo de compilación.
Esta respuesta también funcionará para El Capitán y Mac OS Sierra.
En caso de que no tener XCode Command Line Tools (CLT), ejecutar desde terminal:
xcode-select --install
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-09-16 15:13:27
Como de 2017 / Brew 1.3.2 @ macOS Sierra 10.12.6 todo lo que tienes que hacer es:
$ brew install r
Ni siquiera necesita tocar homebrew/science ya que r ahora es una parte de las fórmulas principales para el Homebrew (homebrew-core).
También instalará todas las dependencias automáticamente:
==> Installing dependencies for r: gmp, mpfr, libmpc, isl, gcc
Hay dos opciones adicionales que usted podría querer saber:
--with-java
Build with java support
--with-openblas
Build with openblas support
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-09-13 23:25:15
Usé este tutorial para instalar R en mi mac, y me hizo instalar xquartz
y un complier fortran (gfortran
) también.
Mi sugerencia sería brew untap homebrew/science
y luego brew tap homebrew/science
e inténtelo de nuevo, también, asegúrese de no tener ningún error cuando ejecute brew doctor
Espero que esto ayude
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2013-12-08 18:56:54
brew install cask
brew cask install xquartz
brew tap homebrew/science
brew install r
De esta manera, todo está administrado por el empaquetador, por lo que no es necesario descargar e instalar manualmente nada.
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-02-26 11:04:04
Trabajando en El Capitan 10.11.1, los pasos que seguí son
brew install cask
brew tap homebrew/science
brew install r
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-02-26 11:02:04
Esto es lo que realmente funcionó para mí en OSX Yosemite.
brew install cask
brew install Caskroom/cask/xquartz
brew install r
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-02-26 11:03:37
Si ejecuta
xcode-select --install
No necesita instalar gcc
a través de brew
, y no tendrá que perder tiempo compilando gcc
. Véase https://stackoverflow.com/a/24967219/2668545 para más detalles.
Después de eso, simplemente puede hacer
brew tap homebrew/science
brew install Caskroom/cask/xquartz
brew install r
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-02-26 11:07:51
Estoy trabajando en macOS 10.10. He actualizado gcc a la versión 4.9 para que funcione.
brew update brew install gcc brew reinstall r
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2015-02-28 05:34:17
brew install homebrew/science/r
Funciona en OS X 10.11.6.
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-02-26 11:01:50
If you meant "r" specifically:
It was migrated from homebrew/science to homebrew/core.
Para r 3.4.3
Mac High Sierra
:
brew tap homebrew/core
brew install Caskroom/cask/xquartz
brew install r
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-12-06 07:21:44
También puede instalar R desde esta página:
Https://cran.r-project.org/bin/macosx /
Funciona fuera de la caja
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-06-18 20:14:31