Welcome
Welcome to MicroAPL's Support Forum for APLX.


You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), upload content, and access many other special features. Registration is fast, simple, and absolutely free, so please, join our community today!

R version 2.10.0 (2009-10-26)

Topics specific to APLX running under MacOS

R version 2.10.0 (2009-10-26)

Postby kamakura on Sun Nov 01, 2009 1:51 am

Can APL ver 5 handle new R version 2.10.0 (2009-10-26)?
R version 2.9.2 does work on APL.

'r' …SETUP 'R_HOME' '/Library/Frameworks/R.framework/Resources/'
Could not load library for architecture 'r'
LOGICAL UNIT NOT FOUND
'r' …SETUP 'R_HOME' '/Library/Frameworks/R.framework/Resources/'
^
Kamakura
kamakura
 
Posts: 6
Joined: Thu Jul 24, 2008 2:45 pm

Re: R version 2.10.0 (2009-10-26)

Postby MicroAPL on Mon Nov 02, 2009 12:32 pm

The first thing to check is whether the R shared library is in the expected place. If that file is not present, the LOGICAL UNIT NOT FOUND error will be signalled.

Under MacOS, the APLX R interface looks for the R libraries here:

Library/Frameworks/R.framework/Libraries/libR.dylib

If you built R 2.10.0 from source, this might not have been installed. You need to specify the option --enable-R-shlib when running the R configure script.

If that isn't the problem, let us know and we'll investigate further.
MicroAPL
Site Admin
 
Posts: 164
Joined: Tue Jul 08, 2008 5:25 pm

Re: R version 2.10.0 (2009-10-26)

Postby kamakura on Sat Nov 21, 2009 3:03 pm

Thanks.
I checked the recent R version 2.10.0 installed in my mac. This one comes from the http://cran.r-project.org/. I can find the file libR.dylib.

iMac2:Libraries kamakura$ pwd
/Library/Frameworks/R.framework/Libraries
iMac2:Libraries kamakura$ ls
i386 libRblas.vecLib.dylib libreadline.5.2.dylib
libR.dylib libRlapack.dylib libreadline.dylib
libRblas.0.dylib libgcc_s.1.dylib ppc
libRblas.dylib libgfortran.2.dylib x86_64

Please investigate the connectivity with the recent R version 2.10.0.

Kamakura
kamakura
 
Posts: 6
Joined: Thu Jul 24, 2008 2:45 pm

Re: R version 2.10.0 (2009-10-26)

Postby MicroAPL on Fri Nov 27, 2009 12:36 pm

We tried installing R Version 2.10 on a machine here, and we were able to reproduce the same problem that you are encountering. It seems to be the case that the R interface is expecting 2.9 for some reason. We are still investigating why this is.

In the meantime, there's a fairly easy workaround. Try using the Terminal application, and type the following two commands at the Unix prompt:

Code: Select all
cd /Library/Frameworks/R.framework/Versions/
ln -s 2.10 2.9


This puts in a temporary link so that Version "2.10" can be accessed by APLX using the name "2.9".

You should now be able to use R v2.10 from APLX:

       'r' ⎕SETUP 'R_HOME'  '/Library/Frameworks/R.framework/Resources/'
r ← 'r' ⎕new 'r'
r.version.⎕ds

platform powerpc-apple-darwin8.11.1
arch powerpc
os darwin8.11.1
system powerpc, darwin8.11.1
status
major 2
minor 10.0
year 2009
month 10
day 26
svn rev 50208
language R
version.string R version 2.10.0 (2009-10-26)

r.mean (⍳10)
5.5
MicroAPL
Site Admin
 
Posts: 164
Joined: Tue Jul 08, 2008 5:25 pm


Return to APLX for MacOS

cron