"An Introduction to R", Venables and Smith, Version 1.6.2 (2003-01-10) http://cran.r-project.org/doc/manuals/R-intro.pdf has in its "Appendix A: A sample session", page 81, file.show("morley.tab") I get the response NO FILE morley.tab The following "Introduction to the R Project for Statistical Computing" www.itc.nl/~rossiter/teach/sstat14/ RIntro_ITC_2003022.pdf comments on the same problem at the bottom of his page 5 and on page 6. His solution is to enter the full path file.show("/usr/lib/R/library/base/data/morley.tab") which works but depends on your system''s R.home(), /usr/lib/R for me [my searchpaths() includes /usr/lib/R/library/base]. He then suggests the solution data(morley) This works, but would force a few line changes in Appendix A of the document "An Introduction to R". Venables and Smith''s succeeding example for beginners to try has read.table("morley.tab") which also fails with cannot open file `morley.tab'' I use Debian Linux version 3.0 (woody) with installed R version 1.5.1, r-base statistical computing language and environment r-base-core core of statistical computing language and env r-base-dev installation of auxiliary GNU R packages r-base-html html docs for statistical computing system fun r-base-latex LaTeX docs for statistical computing system fu r-doc-html html manuals for statistical computing system r-doc-info info manuals statistical computing system r-doc-pdf pdf manuals for statistical computing system r-gnome Gnome gui for statistical computing system r-mathlib standalone mathematics library r-recommended collection of recommended packages Perhaps others don''t have this same file.show("morley.tab") problem, but if others do have this problem, then this beginners'' documentation should alter a couple lines on page 81. -- Jameson C. Burt, NJ9L Fairfax, Virginia, USA jameson at coost.com http://www.coost.com (202) 690-0380 (work) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 240 bytes Desc: not available Url : https://stat.ethz.ch/pipermail/r-help/attachments/20030328/f65bc83f/attachment.bin
ripley@stats.ox.ac.uk
2003-Mar-28 07:37 UTC
[R] file.show("morley.tab") responds "NO FILE"
At the top of a `A sample session'' it says Login, start your windowing system. You should also have the file morley.tab in your working directory. If not, seek the local expert (or get it yourself from the base/data subdirectory of the default R library tree). If you have, proceed. I submit that the `problem'' is that you did not follow those instructions. It is deliberate that you should use a local file, as this gives a pattern for you to use with your own data. On Fri, 28 Mar 2003, Jameson C. Burt wrote:> "An Introduction to R", Venables and Smith, Version 1.6.2 (2003-01-10) > http://cran.r-project.org/doc/manuals/R-intro.pdf > has in its "Appendix A: A sample session", page 81, > file.show("morley.tab") > I get the response > NO FILE morley.tabThe response is platform-specific, BTW. [...] -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
Jameson C. Burt wrote:> "An Introduction to R", Venables and Smith, Version 1.6.2 (2003-01-10) > http://cran.r-project.org/doc/manuals/R-intro.pdf > has in its "Appendix A: A sample session", page 81, > file.show("morley.tab") > I get the response > NO FILE morley.tabThe solution: Please read the first 8 lines (on page 80) of that Appendix as well. "You should also have the file ?morley.tab? in your working directory. If not, seek the local expert (or get it yourself from the ?base/data? subdirectory of the default R library tree). If you have, proceed." Uwe Ligges> The following "Introduction to the R Project for Statistical Computing" > www.itc.nl/~rossiter/teach/sstat14/ RIntro_ITC_2003022.pdf > comments on the same problem at the bottom of his page 5 and on page 6. > His solution is to enter the full path > file.show("/usr/lib/R/library/base/data/morley.tab") > which works but depends on your system''s R.home(), > /usr/lib/R for me [my searchpaths() includes /usr/lib/R/library/base]. > He then suggests the solution > data(morley) > This works, but would force a few line changes > in Appendix A of the document "An Introduction to R". > > Venables and Smith''s succeeding example for beginners to try has > read.table("morley.tab") > which also fails with > cannot open file `morley.tab'' > > I use Debian Linux version 3.0 (woody) > with installed R version 1.5.1, > r-base statistical computing language and environment > r-base-core core of statistical computing language and env > r-base-dev installation of auxiliary GNU R packages > r-base-html html docs for statistical computing system fun > r-base-latex LaTeX docs for statistical computing system fu > r-doc-html html manuals for statistical computing system > r-doc-info info manuals statistical computing system > r-doc-pdf pdf manuals for statistical computing system > r-gnome Gnome gui for statistical computing system > r-mathlib standalone mathematics library > r-recommended collection of recommended packages > > Perhaps others don''t have this same file.show("morley.tab") > problem, but if others do have this problem, > then this beginners'' documentation should alter a couple lines > on page 81.