Ben Ganzfried
2012-Feb-15 20:18 UTC
[R] R Package "example" section of .Rd file question (think it's a non-ASCII issue, but not sure...)
Hey, I keep getting the following warning:> data(GSE19829-GPL570_eset)Warning in data(GSE19829 - GPL570_eset) : data set ‘GSE19829 - GPL570_eset’ not found> ## maybe str(GSE19829-GPL570_eset) ; plot(GSE19829-GPL570_eset) ... > > if(require(affy)){+ summary(GSE19829-GPL570_eset$vital_status) + } Error in summary(GSE19829 - GPL570_eset$vital_status) : object 'GSE19829' not found Execution halted This error does not happen on other of my other .Rd files. None of the other .Rd files have a "-" character in their title. for example, the other files have the following:>data(GSE1234)OR>data(GSE5678)I think the issue is the "-" character, but I'm not sure. Does anyone know if this is the case? And if so, how do I fix it? If not, any other suggestions? Much thanks! Ben [[alternative HTML version deleted]]
Martin Morgan
2012-Feb-15 21:20 UTC
[R] R Package "example" section of .Rd file question (think it's a non-ASCII issue, but not sure...)
On 02/15/2012 12:18 PM, Ben Ganzfried wrote:> Hey, > > I keep getting the following warning: > >> data(GSE19829-GPL570_eset) > Warning in data(GSE19829 - GPL570_eset) : > data set ?GSE19829 - GPL570_eset? not found >> ## maybe str(GSE19829-GPL570_eset) ; plot(GSE19829-GPL570_eset) ...Hi Ben -- '-' is being parsed as a minus sign; you could (I think) quote it `GSE19829-GPL570_eset` or better come up with a legal name. Martin>> >> if(require(affy)){ > + summary(GSE19829-GPL570_eset$vital_status) > + } > Error in summary(GSE19829 - GPL570_eset$vital_status) : > object 'GSE19829' not found > Execution halted > > This error does not happen on other of my other .Rd files. None of the > other .Rd files have a "-" character in their title. for example, the > other files have the following: >> data(GSE1234) > OR >> data(GSE5678) > > I think the issue is the "-" character, but I'm not sure. Does anyone know > if this is the case? And if so, how do I fix it? If not, any other > suggestions? > > Much thanks! > > Ben > > [[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.-- Computational Biology Fred Hutchinson Cancer Research Center 1100 Fairview Ave. N. PO Box 19024 Seattle, WA 98109 Location: M1-B861 Telephone: 206 667-2793
Possibly Parallel Threads
- Think I'm sure, but confirm: lme4 vs. nlme
- BIG ISSUE with SIP, not sure where to go but it's killing asterisk.
- how to find non-ASCII characters in .Rd files?
- Sure, it's a newbie thing, but I'm willing to be at least ONE person has been bit by this....
- Rd-file error: non-ASCII input and no declared encoding