Re: [R] 3 questions: debug R script, multi-level sorts, and multi-gsub

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Sat, 26 Apr 2008 00:04:56 -0400

When it stops with the error you can issue a

traceback()

command or run the script with echo=TRUE:

source("test.R", echo = TRUE, max = 1000)

On Fri, Apr 25, 2008 at 11:28 PM, Ng Stanley <stanleyngkl_at_gmail.com> wrote:
> Hi,
>
> 1) I ran a script say test.R. It ran and terminated with an error. However,
> I am not sure where the error occur.
>
> > source("test.R")
> Loading required package: tools
>
> Welcome to Bioconductor
>
> Vignettes contain introductory material. To view, type
> 'openVignette()'. To cite Bioconductor, see
> 'citation("Biobase")' and for packages 'citation(pkgname)'.
> Error: subscript out of bounds
> 2) I have looked deeply into R, but can't fine multi-level sorts.

>
> 3) I have a vector of words, several of which need to be replaced by
> different unique words. I am using multi-lines of gsub, is there any elegant
> alternative ?
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help_at_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.
>



R-help_at_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. Received on Sat 26 Apr 2008 - 04:07:45 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 26 Apr 2008 - 07:30:31 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive