Skip to content

Using R on MacOS Catalina.....

13 messages · Matthias Krawutschke, Dr Eberhard W Lisse, Byron Ellis +5 more

#
Hello everybody,

 

I am new at this Mailinglist and I have a question about R on MacOS Catalina.

On your Website I had found a package for R. If I want to install it on my MacBook ? the program told me, that I can?t install the software

on an other volume like ?system??.. That is bad, because I had a small Volume on my MacBook ?

 

If I want to compile the R-System new with GNU-C Compiler 9.2.0 ? I can ?make? the files, but ?make install? return it with an ERROR.

So, did you have any ideas what kind of problems that here I had?

 

I thank you very much for your assistance and have a nice day?..

 

Herzlichst gr??t Sie das HPC - Team

 

 

 

Matthias Krawutschke

 

Universit?t Potsdam
ZIM - Zentrum f?r Informationstechnologie und Medienmanagement
Team High-Performance-Computing

Campus Am Neuen Palais: Am Neuen Palais 10 | 14469 Potsdam
Tel: +49 331 977-4444, Fax: +49 331 977-1750

 

Internet:  <http://www.uni-potsdam.de/zim> http://www.uni-potsdam.de/zim
#
Matthias,

A Mac with Catalina and a small hard disk?

I use the Homebrew package manager and while there is a short delay
between R and Homebrew this works out very well.  It has two options,
one with out the app, which is what I use because I for GUI I use
RStudio exclusively.

There is really no need to compile from source :-)-O XCode is huge, 
though the XCode command line tools are required.

Gruss aus dem S?den :-)-O

el
On 28/01/2020 11:05, Matthias Krawutschke wrote:
[...]
#
Eberhard,

thank you so much for your quick response. 

Yes, my MacBook has only 256 GB HDD (Standard) ?
Oh, well, I know & I don?t use X-Code as well. I take the small version of that: xcode-select --install
(It installed only the command-line tools, header, etc. for using their own c-compiler)

Hm, I never used "Homebrew" - I come from the UNIX - World and I like the command-line ?.
Well, I can create the files for R via "make" - after them it breaks the installation ?

Best regards....


Herzlichst gr??t Sie das HPC - Team



i.A.  Matthias Krawutschke

Universit?t Potsdam
ZIM - Zentrum f?r Informationstechnologie und Medienmanagement
Team High-Performance-Computing
Campus Am Neuen Palais: Am Neuen Palais 10 | 14469 Potsdam
Tel: +49 331 977-4444, Fax: +49 331 977-1750

Internet: http://www.uni-potsdam.de/zim

-----Urspr?ngliche Nachricht-----
Von: Dr Eberhard W Lisse <el at lisse.NA> 
Gesendet: Dienstag, 28. Januar 2020 10:18
An: Matthias Krawutschke <krawutschke at uni-potsdam.de>; R-SIG-Mac at r-project.org
Cc: el at lisse.NA
Betreff: Re: [R-SIG-Mac] Using R on MacOS Catalina.....

Matthias,

A Mac with Catalina and a small hard disk?

I use the Homebrew package manager and while there is a short delay between R and Homebrew this works out very well.  It has two options, one with out the app, which is what I use because I for GUI I use RStudio exclusively.

There is really no need to compile from source :-)-O XCode is huge, though the XCode command line tools are required.

Gruss aus dem S?den :-)-O

el
On 28/01/2020 11:05, Matthias Krawutschke wrote:
[...]
#
Homebrew is Linux-style packaging for OS X. Think of it as an equivalent to
apt-get?either it will retrieve a binary or it will attempt to build one.

On Tue, Jan 28, 2020 at 9:33 AM Matthias Krawutschke <
krawutschke at uni-potsdam.de> wrote:

            

  
    
#
Matthias,

this is exactly why you should use Homebrew.

Tante Gugel is your friend :-)-O

el
On 28/01/2020 11:33, Matthias Krawutschke wrote:
[...]
[...]
#
For me it usually had to resort to the latter when there were
connectivity issues (more common in Namibia than in Potsdam :-)-O).

And maybe once or twice when I wanted to try something special.

It also has a 'cask' option with which it installs apps so I do

brew install r
brew cask install rstudio


All in all rock solid.

el
On 28/01/2020 11:43, Byron Ellis wrote:
#
Thank you so much for you assistance.

My problem is not solved, because I must install R, etc. on a different Volume like SYS-Volume & I can?t find this option under "homebrew"..... 


Best regards from Berlin, Germany
Herzlichst gr??t Sie das HPC - Team



Matthias Krawutschke

Universit?t Potsdam
ZIM - Zentrum f?r Informationstechnologie und Medienmanagement
Team High-Performance-Computing
Campus Am Neuen Palais: Am Neuen Palais 10 | 14469 Potsdam
Tel: +49 331 977-4444, Fax: +49 331 977-1750

Internet: http://www.uni-potsdam.de/zim

-----Urspr?ngliche Nachricht-----
Von: Dr Eberhard W Lisse <el at lisse.NA> 
Gesendet: Dienstag, 28. Januar 2020 11:09
An: Byron Ellis <byron.ellis at gmail.com>; Matthias Krawutschke <krawutschke at uni-potsdam.de>
Cc: el at lisse.NA; R-SIG-Mac at r-project.org
Betreff: Re: [R-SIG-Mac] Using R on MacOS Catalina.....

For me it usually had to resort to the latter when there were connectivity issues (more common in Namibia than in Potsdam :-)-O).

And maybe once or twice when I wanted to try something special.

It also has a 'cask' option with which it installs apps so I do

brew install r
brew cask install rstudio


All in all rock solid.

el
On 28/01/2020 11:43, Byron Ellis wrote:
#
First of all 256 Gig is huge, as far as Homebrew is concerned. I have had homebrew installed
even on very old systems with no more than that.

Secondly, drag the sucker over to the iStore or Gravis and have them bang a proper SSD in. Been there, done that.

Or, thirdly, install minimal Homebrew and then look under /usr/local and /opt, what it uses, move them to another Volume and symlink/mount them accordingly.

Why is this so complicated? Not unfamiliar says the German in me. But then I am only an elderly Gynecologist not doing high performance computing.

el

?
Sent from Dr Lisse?s iPad Mini 5
On 28 Jan 2020, 21:14 +0200, Matthias Krawutschke <krawutschke at uni-potsdam.de>, wrote:

  
  
#
If you say Debian, Fink is more appropriate.  Fink uses apt-get and .deb format.  One good thing is Fink allows you to install multiple versions of R.

2020/01/28 18:43?Byron Ellis <byron.ellis at gmail.com>????:
#
Why not use the official installer and adjust the installation path?

https://cran.r-project.org/bin/macosx/

Also allows multiple versions being installed, all from the CLI (but I
guess guess it's a normal desktop machine and you can just use the gui
installer).

256GB is a normal size for a disk, don't see the problem. 90% of all macs
probably don't have more.

Homebrew R differs slightly from the official R installer and might cause
problems in some cases.

Matthias Krawutschke <krawutschke at uni-potsdam.de> schrieb am Di., 28. Jan.
2020, 20:15:

  
  
#
????? I haven't followed this entire thread, but I'm running macOS 
10.15.2 Catalina on a 2014 MacBookPro, and I haven't had problems 
downloading the latest version of R.? Roughly a month ago, I clicked 
"R-3.6.2.pkg" on "https://cloud.r-project.org/bin/macosx/".? It 
downloaded to my "Downloads" directory.? Then I double-clicked on it, 
and it opened.? I can't remember, but I may have had to click and drag 
the icon to the "Applications" folder.? And I may have had to enter my 
password to assure macOS that it was OK to run that application.? I may 
have had problems with this a few years ago, but I haven't had a problem 
recently.? However, I may misunderstand your question.


 ????? Spencer Graves
On 2020-01-28 23:58, Patrick Schratz wrote:
#
Patrick,

thank you so much for your help /answer.

But the ?official? R on this WebSite doesn?t allow to install the software on an other Volume (I wrote that in my first eMail).

 

YES, 256 GB is a lot for a MAC, but if you have less than 50% free of your harddisk, the system goes slow, because it is a SSD ? HardDrive???

So it is better to install the software on an other HardDisk /Volume?.. and it is faster ?

 

HomeBrew is nice, that?s right, but I don?t want to install that.

 

Herzlichst gr??t Sie das HPC - Team

 

 

 

Matthias Krawutschke

 

Universit?t Potsdam
ZIM - Zentrum f?r Informationstechnologie und Medienmanagement
Team High-Performance-Computing

Campus Am Neuen Palais: Am Neuen Palais 10 | 14469 Potsdam
Tel: +49 331 977-4444, Fax: +49 331 977-1750

 

Internet:  <http://www.uni-potsdam.de/zim> http://www.uni-potsdam.de/zim

 

Von: Patrick Schratz <patrick.schratz at gmail.com> 
Gesendet: Mittwoch, 29. Januar 2020 06:59
An: Matthias Krawutschke <krawutschke at uni-potsdam.de>
Cc: el at lisse.na; Byron Ellis <byron.ellis at gmail.com>; R-SIG-Mac at r-project.org
Betreff: Re: [R-SIG-Mac] Using R on MacOS Catalina.....

 

Why not use the official installer and adjust the installation path?

 

https://cran.r-project.org/bin/macosx/

 

Also allows multiple versions being installed, all from the CLI (but I guess guess it's a normal desktop machine and you can just use the gui installer). 

 

256GB is a normal size for a disk, don't see the problem. 90% of all macs probably don't have more.

 

Homebrew R differs slightly from the official R installer and might cause problems in some cases. 

 

Matthias Krawutschke <krawutschke at uni-potsdam.de <mailto:krawutschke at uni-potsdam.de> > schrieb am Di., 28. Jan. 2020, 20:15:

Thank you so much for you assistance.

My problem is not solved, because I must install R, etc. on a different Volume like SYS-Volume & I can?t find this option under "homebrew"..... 


Best regards from Berlin, Germany
Herzlichst gr??t Sie das HPC - Team



Matthias Krawutschke

Universit?t Potsdam
ZIM - Zentrum f?r Informationstechnologie und Medienmanagement
Team High-Performance-Computing
Campus Am Neuen Palais: Am Neuen Palais 10 | 14469 Potsdam
Tel: +49 331 977-4444, Fax: +49 331 977-1750

Internet: http://www.uni-potsdam.de/zim

-----Urspr?ngliche Nachricht-----
Von: Dr Eberhard W Lisse <el at lisse.NA <mailto:el at lisse.NA> > 
Gesendet: Dienstag, 28. Januar 2020 11:09
An: Byron Ellis <byron.ellis at gmail.com <mailto:byron.ellis at gmail.com> >; Matthias Krawutschke <krawutschke at uni-potsdam.de <mailto:krawutschke at uni-potsdam.de> >
Cc: el at lisse.NA <mailto:el at lisse.NA> ; R-SIG-Mac at r-project.org <mailto:R-SIG-Mac at r-project.org> 
Betreff: Re: [R-SIG-Mac] Using R on MacOS Catalina.....

For me it usually had to resort to the latter when there were connectivity issues (more common in Namibia than in Potsdam :-)-O).

And maybe once or twice when I wanted to try something special.

It also has a 'cask' option with which it installs apps so I do

brew install r
brew cask install rstudio


All in all rock solid.

el
On 28/01/2020 11:43, Byron Ellis wrote:
_______________________________________________
R-SIG-Mac mailing list
R-SIG-Mac at r-project.org <mailto:R-SIG-Mac at r-project.org> 
https://stat.ethz.ch/mailman/listinfo/r-sig-mac
1 day later
#
Matthias,

CRAN R and all packages rely on absolute paths to the framework - that's why we don't allow any other location. However, the is nothing preventing you from moving it elsewhere and using a symlink. So your best bet is to install it and then move
/Library/Frameworks/R.framework
anywhere you want and create a symlink from there to the new location. If you don't even have enough space for a temporary install, you can use the tar balls provided at http://mac.r-project.org/ and unpack them on your secondary volume and create symlinks yourself. In that case, you will likely also want to create a symlink from /usr/local/bin/R to Resources/bin/R inside the framework - this is normally done by the installer script. FWIW, you can see the full postinstall script which is run by the installer here:
https://svn.r-project.org/R-dev-web/trunk/QA/Simon/R-build/packaging/leopard/scripts/postflight

In theory, you can also just symlink /Library/Frameworks and then install - I have not tested that but it should also work.

Cheers,
Simon