[R-SIG-Mac] 64-bit packages and 32-bit R

2009-10-26 Thread Richard R. Liu
I'm running R 2.9.2 build 5464 on OS X 10.5.8.  Having encountered  
memory allocation problems, I ran the problematic code in R64, the 64- 
bit version of the same build.  When I attempt to load openNLP I  
receive the error message that the 32-bit version that I had been  
using does not run in R64.


I understand that there is a 64-bit version of openNLP, and that it  
installs in R64 without problems.  I am assuming, however, that  
packages installed by 32-bit R and those installed by 64-bit R land in  
the same place, because I can see the 32-bit packages in the package  
list of 64-bit R. So my question is, when I subsequently switch to R  
(32-bit), will 64-bit versions of packages run there?  I'm trying to  
avoid constantly having to manually switch between 32- and 64-bit  
versions of packages.


Thanks,
Richard



smime.p7s
Description: S/MIME cryptographic signature
___
R-SIG-Mac mailing list
R-SIG-Mac@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-mac


[R-SIG-Mac] 64-bit packages and 32-bit R

2009-10-26 Thread Richard R. Liu
I'm running R 2.9.2 build 5464 on OS X 10.5.8.  Having encountered  
memory allocation problems, I ran the problematic code in R64, the 64- 
bit version of the same build.  When I attempt to load openNLP I  
receive the error message that the 32-bit version that I had been  
using does not run in R64.


I understand that there is a 64-bit version of openNLP, and that it  
installs in R64 without problems.  I am assuming, however, that  
packages installed by 32-bit R and those installed by 64-bit R land in  
the same place, because I can see the 32-bit packages in the package  
list of 64-bit R. So my question is, when I subsequently switch to R  
(32-bit), will 64-bit versions of packages run there?  I'm trying to  
avoid constantly having to manually switch between 32- and 64-bit  
versions of packages.


Thanks,
Richard



smime.p7s
Description: S/MIME cryptographic signature
___
R-SIG-Mac mailing list
R-SIG-Mac@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-mac


Re: [R-SIG-Mac] Encoding issue with read.csv

2009-10-26 Thread Arcadio Rubio García
 Perhaps you meant to use fileEncoding=iso-8859-1 instead of
 encoding=iso-8859-1?  Because that does the same as setting
 options(encoding=iso-8859-1) -- see ?read.table for details.

Thanks a lot. That was the mistake I was making. I was using the
encoding parameter instead of the fileEncoding one, so I was setting
the encoding for the output not for the input. Now it works fine both
with and only with iso-8859-1 or cp1252. That's quite understandable
since cp1252 is a (non-strict) superset of iso-8859-1.

Regards,
A.R.

___
R-SIG-Mac mailing list
R-SIG-Mac@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-mac


[R-SIG-Mac] Increase heap space of openNLP

2009-10-26 Thread Richard R. Liu
I'm not sure whether this question belongs in this SIG or in the R-help mail 
list.

I'm running R 2.9.2 Leopard version on a MacBook Pro 17 early 2009 laptop
with OS X 10.5.8.  Due to memory problems I am running the 64-bit version of
R.app, R64.  When I sentDetect I get a an out-of-memory Java heap space
exception.  How can increase the heap space to avoid this error?

Thanks,
Richard

___
R-SIG-Mac mailing list
R-SIG-Mac@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-mac


Re: [R-SIG-Mac] 64-bit packages and 32-bit R

2009-10-26 Thread Richard R. Liu
Thanks for the prompt reply.  Yes, I understand that I have just one package
and that I can start in in two modes.  If I launch R.app, R runs in 32-bit
mode; if R64.app, in 64-bit mode.

In 64-bit mode, it can happen that a package that I have installed while
running in 32-bit mode needs a 64-bit version.  Such a package is openNLP. 
Since posing the question I have in fact installed the 64-bit version.  In
that situation I encountered a Java heap space exception, which I have
reported elsewhere.  So I exited 64-bit R, and ran R.app (32-bit R).  The same
operation that encountered the heap space problem in 64-bit R ran without a
problem in 32-bit R, I am assuming with the 64-bit version of openNLP.

So I guess I must repose my question:  Will this always be the case?  That is,
will a 64-bit version of a package always run OK in 32-bit R?

Thanks,
Richard 

On Mon, 26 Oct 2009 08:45:15 -0400, Simon Urbanek wrote
 On Oct 26, 2009, at 2:42 AM, Richard R. Liu wrote:
 
  I'm running R 2.9.2 build 5464 on OS X 10.5.8.  Having encountered  
  memory allocation problems, I ran the problematic code in R64, the  
  64-bit version of the same build.  When I attempt to load openNLP I  
  receive the error message that the 32-bit version that I had been  
  using does not run in R64.
 
  I understand that there is a 64-bit version of openNLP, and that it  
  installs in R64 without problems.  I am assuming, however, that  
  packages installed by 32-bit R and those installed by 64-bit R land  
  in the same place, because I can see the 32-bit packages in the  
  package list of 64-bit R. So my question is, when I subsequently  
  switch to R (32-bit), will 64-bit versions of packages run there?   
  I'm trying to avoid constantly having to manually switch between 32-  
  and 64-bit versions of packages.
 
 
 I'm assuming you're talking about the Leopard build -- in that case  
 both 32-bit and 64-bit are part parts of the same R and package --  
 they are not a 'different package'. Please read about sub- 
 architectures in R documentation to understand the details if you  
 desire, but you are not supposed to switch anything. The only  
 problems you can cause is to forget to upgrade your packages when 
 you  installed the Leopard build.
 
 Cheers,
 Simon


--
Richard R. Liu
Dittingerstr. 33
CH-4053 Basel
Switzerland

Tel.:  +41 61 331 10 47
Email:  richard@pueo-owl.ch

___
R-SIG-Mac mailing list
R-SIG-Mac@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-mac


Re: [R-SIG-Mac] Increase heap space of openNLP

2009-10-26 Thread Richard R. Liu
Many thanks for your reply.  I'm afraid I'm very new at all this.  I really
don't know where to set the Java parameter -Xmx.  In most applications that
are written in Java for the Mac, there is usually some way to set those
parameters in the .plist of the app.  I don't find any such section for R.app
or R64.app.  I have located the openNLP package in ~/Libraries/R/Library/2.9,
but I don't see anything there.  I obviously looked in R-help for increase
heap space, etc., before posing the question.

Could you be a bit more specific about where to set this parameter? 
Everything I do in R I do through the R GUI.

Thanks,
Richard

On Mon, 26 Oct 2009 08:41:51 -0400, Simon Urbanek wrote
 On Oct 26, 2009, at 6:58 AM, Richard R. Liu wrote:
 
  I'm not sure whether this question belongs in this SIG or in the R- 
  help mail list.
 
  I'm running R 2.9.2 Leopard version on a MacBook Pro 17 early  
  2009 laptop
  with OS X 10.5.8.  Due to memory problems I am running the 64-bit  
  version of
  R.app, R64.  When I sentDetect I get a an out-of-memory Java heap  
  space
  exception.  How can increase the heap space to avoid this error?
 
 
 set -Xmx Java parameter (see java -X)
 
 Cheers,
 Simon


--
Richard R. Liu
Dittingerstr. 33
CH-4053 Basel
Switzerland

Tel.:  +41 61 331 10 47
Email:  richard@pueo-owl.ch

___
R-SIG-Mac mailing list
R-SIG-Mac@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-mac


Re: [R-SIG-Mac] Increase heap space of openNLP

2009-10-26 Thread Simon Urbanek


On Oct 26, 2009, at 9:44 , Richard R. Liu wrote:

Many thanks for your reply.  I'm afraid I'm very new at all this.  I  
really

don't know where to set the Java parameter -Xmx.


If the packages you use don't override default settings you can simply  
set (example for 2GB):


options(java.parameters=-Xmx2g)

If they do, you can make 100% sure that they won't be able to by  
running the following before loading any packages:


library(rJava)
.jinit(parameters=-Xmx2g)

The above examples sets the heap to 2GB of memory -- but make sure you  
have that much memory otherwise Java won't accept it.


On the command line (Terminal) type java -X to see the Java  
parameters you can set.


Cheers,
Simon


 In most applications that are written in Java for the Mac, there is  
usually some way to set those parameters in the .plist of the app.   
I don't find any such section for R.app or R64.app.  I have located  
the openNLP package in ~/Libraries/R/Library/2.9, but I don't see  
anything there.  I obviously looked in R-help for increase heap  
space, etc., before posing the question.
Could you be a bit more specific about where to set this parameter?   
Everything I do in R I do through the R GUI.


Thanks,
Richard

On Mon, 26 Oct 2009 08:41:51 -0400, Simon Urbanek wrote

On Oct 26, 2009, at 6:58 AM, Richard R. Liu wrote:


I'm not sure whether this question belongs in this SIG or in the R-
help mail list.

I'm running R 2.9.2 Leopard version on a MacBook Pro 17 early
2009 laptop
with OS X 10.5.8.  Due to memory problems I am running the 64-bit
version of
R.app, R64.  When I sentDetect I get a an out-of-memory Java heap
space
exception.  How can increase the heap space to avoid this error?



set -Xmx Java parameter (see java -X)

Cheers,
Simon



--
Richard R. Liu
Dittingerstr. 33
CH-4053 Basel
Switzerland

Tel.:  +41 61 331 10 47
Email:  richard@pueo-owl.ch




___
R-SIG-Mac mailing list
R-SIG-Mac@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-mac


Re: [R-SIG-Mac] Increase heap space of openNLP

2009-10-26 Thread Richard R. Liu
Excellent!  Thank-you.

On Mon, 26 Oct 2009 10:04:49 -0400, Simon Urbanek wrote
 On Oct 26, 2009, at 9:44 , Richard R. Liu wrote:
 
  Many thanks for your reply.  I'm afraid I'm very new at all this.  I  
  really
  don't know where to set the Java parameter -Xmx.
 
 If the packages you use don't override default settings you can 
 simply  set (example for 2GB):
 
 options(java.parameters=-Xmx2g)
 
 If they do, you can make 100% sure that they won't be able to by  
 running the following before loading any packages:
 
 library(rJava)
 .jinit(parameters=-Xmx2g)
 
 The above examples sets the heap to 2GB of memory -- but make sure 
 you  have that much memory otherwise Java won't accept it.
 
 On the command line (Terminal) type java -X to see the Java  
 parameters you can set.
 
 Cheers,
 Simon
 
   In most applications that are written in Java for the Mac, there is  
  usually some way to set those parameters in the .plist of the app.   
  I don't find any such section for R.app or R64.app.  I have located  
  the openNLP package in ~/Libraries/R/Library/2.9, but I don't see  
  anything there.  I obviously looked in R-help for increase heap  
  space, etc., before posing the question.
  Could you be a bit more specific about where to set this parameter?   
  Everything I do in R I do through the R GUI.
 
  Thanks,
  Richard
 
  On Mon, 26 Oct 2009 08:41:51 -0400, Simon Urbanek wrote
  On Oct 26, 2009, at 6:58 AM, Richard R. Liu wrote:
 
  I'm not sure whether this question belongs in this SIG or in the R-
  help mail list.
 
  I'm running R 2.9.2 Leopard version on a MacBook Pro 17 early
  2009 laptop
  with OS X 10.5.8.  Due to memory problems I am running the 64-bit
  version of
  R.app, R64.  When I sentDetect I get a an out-of-memory Java heap
  space
  exception.  How can increase the heap space to avoid this error?
 
 
  set -Xmx Java parameter (see java -X)
 
  Cheers,
  Simon
 
 
  --
  Richard R. Liu
  Dittingerstr. 33
  CH-4053 Basel
  Switzerland
 
  Tel.:  +41 61 331 10 47
  Email:  richard@pueo-owl.ch
 
 


--
Richard R. Liu
Dittingerstr. 33
CH-4053 Basel
Switzerland

Tel.:  +41 61 331 10 47
Email:  richard@pueo-owl.ch

___
R-SIG-Mac mailing list
R-SIG-Mac@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-mac