Opened 10 years ago

Last modified 3 years ago

#46849 new enhancement

R @3.1.2_0: restore support for ${prefix}/lib/R/library

Reported by: howarth.at.macports@… Owned by: kjellpk (Kjell Konis)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: cooljeanius (Eric Gallager)
Port: R

Description

The attached Portfile diff restores the previous behavior of R being able to find R packages installed in ${prefix}/lib/R/library by providing access to that directory via a 'site-library' symlink in ${destroot}${prefix}/Library/Frameworks/R.framework/Versions/${major}.${minor}/Resources. This changes the current behavior from...

% R

R version 3.1.2 (2014-10-31) -- "Pumpkin Helmet"
Copyright (C) 2014 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin14.3.0 (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> .libPaths()
[1] "/opt/local/Library/Frameworks/R.framework/Versions/3.1/Resources/library"
> 

...to the desired...

% R

R version 3.1.2 (2014-10-31) -- "Pumpkin Helmet"
Copyright (C) 2014 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin14.3.0 (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> .libPaths()
[1] "/opt/local/lib/R/library"                                                
[2] "/opt/local/Library/Frameworks/R.framework/Versions/3.1/Resources/library"
> 

...once the ${prefix}/lib/R/library directory exists upon installation of another package like previous rNMR-1.1.7 which stored its cran package files there.

Attachments (1)

Portfile.diff (612 bytes) - added by howarth.at.macports@… 10 years ago.
Portfile diff to restore support for storage of cran packages in ${prefix}/lib/R/library

Download all attachments as: .zip

Change History (5)

comment:1 Changed 10 years ago by larryv (Lawrence Velázquez)

Owner: changed from macports-tickets@… to kjell.konis@…
Summary: R-3.1.2-1 update to restore support for ${prefix}/lib/R/libraryR @3.1.2_0: restore support for ${prefix}/lib/R/library
Version: 2.3.3

You should use “${frameworks_dir}” instead of “${prefix}/Library/Frameworks”.

Changed 10 years ago by howarth.at.macports@…

Attachment: Portfile.diff added

Portfile diff to restore support for storage of cran packages in ${prefix}/lib/R/library

comment:2 Changed 10 years ago by howarth.at.macports@…

Better yet, the new revised Portfile.diff uses ${resources} to replace ${frameworks_dir}/R.framework/Versions/${major}.${minor}/Resources in the symlink creation.

comment:3 Changed 10 years ago by howarth.at.macports@…

Ping

comment:4 Changed 3 years ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added
Note: See TracTickets for help on using tickets.