Dear Uwe,


Thanks for your time.


Definitely something was bugging my script (my mistake).


Since your replay I have been trying to find the bug, to a simple script :( , 
without success.


Preparing a reply to post with data sample and the script, everything start to 
work normally.


Sadly, I still do not know what was. I never get an error message from R. It 
just started to jump functions when I selected the whole script.


The most relevant move, for the fix, was to copy/paste the script to a new 
script page and a change the data.set name. 
 
:| ??????


Anyhow, is working again.


I always appreciate the time of this collaborative group.


Thank again,


Jose



 
> Date: Wed, 16 Feb 2011 18:10:21 +0100
> From: lig...@statistik.tu-dortmund.de
> To: surfpr...@hotmail.com
> CC: r-help@r-project.org
> Subject: Re: [R] problem running scripts
> 
> 
> 
> On 14.02.2011 19:58, jose Bartolomei wrote:
> >
> >
> > Dear all,
> >
> >
> > I have encounter an odd situation.
> >
> >
> > I have various R scripts interconnected via the source () function.
> >
> >
> > After examining the results I noticed that not all the functions or 
> > procedures within a script were adequately conducted.
> > Especially with the longest script ( about 180 lines)
> >
> >
> > Then, I ran every scripts individually (not using source () ) selecting all 
> > (Ctrl + a) and running the selection (Ctrl + r).
> >
> >
> > R read every line in my script but, again, not all of the procedures were 
> > executed.
> >
> >
> > For example:
> >
> >
> > X$DATEACCI<-as.Date(X$DATEACCI) stayed as a factor.
> >
> >
> > Or
> >
> > X$AgeG bellow was not created
> >
> >
> > ageg<-c(0, 4, 11, 50, Inf)
> >
> >
> > X$AgeG<-cut(X$AGE, ageg, include.lowest=TRUE,
> > labels=c("0-4", "5-11", "12-50", "51+"))
> >
> >
> >
> >
> > X data.set is approximately dim( 345,000, 33) for year one but I will need 
> > to run the scripts on 10 years.
> >
> >
> > I tried it using attach and the function use() from epicalc but did not 
> > work neither.
> 
> 
> Well, you need to give us a reproducible example, if my following guess 
> is incorrect: You have not looked at the error messages!
> Please report the error messages and whatch out after which lines they 
> appear if you run it as a whole. You certainly made a mistake, but we 
> cannot know.
> 
> Uwe Ligges
> 
> 
> 
> 
> 
> 
> >
> > Nonetheless, if I ran every line of my script individually, everything was 
> > OK.
> >
> >
> >
> >
> > Any insight on this?
> > What I have missed from R Manuals?
> >
> >
> > I am using R 2.12.0 embedded within eclipse Helios via StatET 0.9.1
> >
> >
> > In addition I ran the scripts using R console: 2.12.0, 32 bit (not within 
> > eclipse)
> >
> >
> > I conducted the same procedure in two different HP Z400 running in Window 
> > 7, 4Gb of RAM
> >
> >
> > I'll try under Linux in my home, if different I'll report it.
> >
> >
> > Thanks,
> >
> >
> > Jose
> >
> > 
> > [[alternative HTML version deleted]]
> >
> > ______________________________________________
> > R-help@r-project.org mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
                                          
        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to