Re: [R] Testing memory limits in R??

2009-07-06 Thread Andy Zhu
check Memory in R: ?Memory --- On Mon, 7/6/09, Scott Zentz wrote: From: Scott Zentz Subject: [R] Testing memory limits in R?? To: r-help@r-project.org Date: Monday, July 6, 2009, 3:52 PM Hello Everyone,    We have recently purchased a server which has 64GB of memory running a 64bit OS and

Re: [R] #INCLUDE

2009-07-08 Thread Andy Zhu
source(_external_file_name) --- On Wed, 7/8/09, Idgarad wrote: From: Idgarad Subject: [R] #INCLUDE To: r-help@r-project.org Date: Wednesday, July 8, 2009, 11:16 AM What is R's equivalent to a C-like #include to incorporate external files. I have a 2k line function that is generated and need to

Re: [R] cannot allocate a vector with 1920165909 length

2009-07-28 Thread Andy Zhu
Out of memory? How large is your physical memory? --- On Tue, 7/28/09, zhijie zhang wrote: From: zhijie zhang Subject: [R] cannot allocate a vector with 1920165909 length To: r-h...@stat.math.ethz.ch Date: Tuesday, July 28, 2009, 9:49 PM Dear Rusers, The error for the  following was that it c

[R] R CMD build/install: wrong Rtools include path is passed to g++

2010-12-21 Thread Andy Zhu
Hi: I am trying to build/install rparallel source package in win32 using Rtools/R CMD. However, R CMD build or install fails. The R CMD build output shows that the path of Rtools/MinGW/include is wrong in g++ -I. How can I pass/configure the correct include path to R CMD? Tried this in both R

Re: [R] R CMD build/install: wrong Rtools include path is passed to g++

2010-12-21 Thread Andy Zhu
Never mind. Found the solution: the package coded the rtools path in Makevars.win. So I was able to compile (but have another problem though). But not sure if there is an environment name for rtools, maybe RTOOLS_HOME ... Thanks. - Forwarded Message From: Andy Zhu Cc: r-help@r

[R] installation of R/parallel package in win32/64

2010-12-21 Thread Andy Zhu
This is to summarize my workaround to install R/parallel in win32/64 boxes. Recently I had problems to install rparallel: 1. The package's Makevars.win coded include fixed path for Rtools 2. package is written in C++; Rtools and R are not intended to run g++ by default. My workaround: 1. Need t

Re: [R] getting time series into r

2011-05-23 Thread Andy Zhu
No attachment.  But if your date is in the MMDD then the format syntax is ...format="%Y%m%d"). Best, --- On Mon, 5/23/11, Heiman, Thomas J. wrote: From: Heiman, Thomas J. Subject: [R] getting time series into r To: "R-help@r-project.org" Date: Monday, May 23, 2011, 2:32 PM Hi, I am tr

Re: [R] writing dates to a file

2011-05-24 Thread Andy Zhu
I think if you attach the output file would make clear.  I guess it is very likely your merge has the problem, not the write.table.  You may need "by" parameter in merge based on the date.  It also could be date value is converged to numeric value, in this case you just need to convert it back.

Re: [R] matrix not working

2011-05-26 Thread Andy Zhu
Dat: 1. you can use as.matrix to convert data.frame to matrix; 2. it is likely that the internal representation of your data.frame may not be numerical value; matrix can only take on numeric. --- On Thu, 5/26/11, Dat Mai wrote: From: Dat Mai Subject: [R] matrix not working To: r-help@r-pro

Re: [R] Run R script automatically each morning and email results?

2011-06-01 Thread Andy Zhu
Use cron job scheduler to start r session on your script. Andy From: Sarah Henderson To: R List Sent: Wednesday, June 1, 2011 7:50 PM Subject: [R] Run R script automatically each morning and email results? Greetings to all -- I am hoping that someone can off

[R] R CMD in 2.11.1 error

2010-06-06 Thread Andy Zhu
Hi, I have a set of user defined package which I have installed in 2.8.1 for quite some time. I installed 2.11.0 and 2.11.1 a couple of days ago while still having 2.8.1 version in my system. For the package, package.skeleton works fine in R 2.11. However, it comes problem when I run Rcmd ch

[R] help: error handling in try

2008-09-09 Thread Andy Zhu
First time to post and searched archive for this problem with no clue. My version is 2.5.1. Below is a function to check if a given date is a valid date to a given date function object. It uses try (also tried tryCatch but with same problem). When given an invalid date, I am hoping try will gen

Re: [R] help: error handling in try

2008-09-10 Thread Andy Zhu
r in f.error(1) : error > value <- try(f.error(0)) # no error > if (inherits(value, 'try-error')) cat ("Got this error:", value) else print("no error") [1] "no error" > > On Tue, Sep 9, 2008 at 8:56 PM, Andy Zhu <[EMAIL PROTECTED]> wrote:

Re: [R] Woring message in as.yearmon()

2008-09-10 Thread Andy Zhu
Try this modification: as.yearmon(paste(res[,1], res[,2], sep="-"),format="%Y-%m")Andy --- On Wed, 9/10/08, Megh Dal <[EMAIL PROTECTED]> wrote: From: Megh Dal <[EMAIL PROTECTED]> Subject: [R] Woring message in as.yearmon() To: [EMAIL PROTECTED] Date: Wednesday, September 10, 2008, 2:15 PM I have

Re: [R] help: error handling in try

2008-09-11 Thread Andy Zhu
it and return the error message as the result and you can test the class for being 'try-error'. On Wed, Sep 10, 2008 at 9:11 PM, Andy Zhu <[EMAIL PROTECTED]> wrote: > Thanks, Jim: > > One of the purpose of this function is to try not to stop the program and generate T/F resu

Re: [R] Passing data among multiple instances

2009-02-04 Thread Andy Zhu
--- On Wed, 2/4/09, Feng Li <840...@gmail.com> wrote: From: Feng Li <840...@gmail.com> Subject: Re: [R] Passing data among multiple instances To: "Warren Young" Cc: r-help@r-project.org Date: Wednesday, February 4, 2009, 10:19 AM On Wed, Feb 4, 2009 at 4:02 PM, Warren Young wrote: > Feng Li w

[R] Q: rbind problem in my code

2008-10-29 Thread Andy Zhu
I have a large matrix which is divided into several pieces, manipulated individually, and saved into RData in disc. After each pieces are done with operation, I load them into memory and use rbind to stack them back into matrix. however, the rbind is only give me the last two pieces. The followi