Hello, I'm trying to use the package ttda, wich is involved in text analysis, for my own data about answers in a company survey. I've installed it, as well as ispell, but when trying to use an example:> zz <- file("stupid.txt", "w") # build a data file > cat("{comment - stupid data file} \n" , file = zz) > cat("<uci=1> Hush-a-bye, baby, \n" , file = zz) > cat(" in the tree top. \n" , file = zz) > cat("<uci=2> When the wind blows, \n" , file = zz) > cat(" the cradle will rock. \n" , file = zz) > cat("<uci=3> When the bough breaks, \n" , file = zz) > cat(" the cradle will fall, \n" , file = zz) > cat("And down will come baby, \n" , file = zz) > cat(" cradle and all. \n" , file = zz) > cat("{Nursery rime} \n" , file = zz) > close(zz) > dummy.example <- ttda.get.text(textfile = "stupid.txt") > dummy.example <- ttda.uce(dummy.example)error in identical(native.enc, MacRoman) : native.enc not found it lamentably fails. how about this ? -- --~~ Toulouse, Grenoble, Auch, Arcachon, B??ziers, Paris, Saragosse, L??vignac Sur Save, habitats naturel du Valdo. ~~-- <http://www.le-valdo.com>
Hello, I'm interested in LaTeX notations in R graphs. For example, I would like to know the R code to obtain the graph here, http://www.r-project.org/screenshots/power.png Thanks. PS: it's possible that you have several copies of this mail, sorry for this.
Looks like the package is not written for current R. native.enc was used prior to R 2.1.0. Please take the advice of the posting guide and ask the maintainer. BTW, there is no package ttda on CRAN, and you have not told us where you found it or what version you used. If you mean http://wwwpeople.unil.ch/jean-pierre.mueller/ it refers to rather old versions of R. On Mon, 29 Aug 2005, Laurent Valdes wrote:> Hello, > > I'm trying to use the package ttda, wich is involved in text analysis, > for my own data about answers in a company survey. > I've installed it, as well as ispell, but when trying to use an example: > >> zz <- file("stupid.txt", "w") # build a data file >> cat("{comment - stupid data file} \n" , file = zz) >> cat("<uci=1> Hush-a-bye, baby, \n" , file = zz) >> cat(" in the tree top. \n" , file = zz) >> cat("<uci=2> When the wind blows, \n" , file = zz) >> cat(" the cradle will rock. \n" , file = zz) >> cat("<uci=3> When the bough breaks, \n" , file = zz) >> cat(" the cradle will fall, \n" , file = zz) >> cat("And down will come baby, \n" , file = zz) >> cat(" cradle and all. \n" , file = zz) >> cat("{Nursery rime} \n" , file = zz) >> close(zz) >> dummy.example <- ttda.get.text(textfile = "stupid.txt") >> dummy.example <- ttda.uce(dummy.example) > error in identical(native.enc, MacRoman) : > native.enc not found > > it lamentably fails. > > how about this ? > -- > --~~ Toulouse, Grenoble, Auch, Arcachon, B?ziers, Paris, > Saragosse, L?vignac Sur Save, habitats naturel du Valdo. ~~-- > <http://www.le-valdo.com> > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html >-- 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
Hello Laurent, Yes, i know there is a problem with ttda. I had no time to work on ttda, wich is broken since R version 2.1. This new version of R has introduced many new ways to deal with text ( use of utf by default, grep & family modifications; so i have a lot of small modifications to do) I will contact you when the next version is out. Sorry for this bad news. Le 29 ao??t 05, ?? 14:54, Laurent Valdes a ??crit :> Hello, > > I'm trying to use the package ttda, wich is involved in text analysis, > for my own data about answers in a company survey. > I've installed it, as well as ispell, but when trying to use an > example: > >> zz <- file("stupid.txt", "w") # build a data file >> cat("{comment - stupid data file} \n" , file = zz) >> cat("<uci=1> Hush-a-bye, baby, \n" , file = zz) >> cat(" in the tree top. \n" , file = zz) >> cat("<uci=2> When the wind blows, \n" , file = zz) >> cat(" the cradle will rock. \n" , file = zz) >> cat("<uci=3> When the bough breaks, \n" , file = zz) >> cat(" the cradle will fall, \n" , file = zz) >> cat("And down will come baby, \n" , file = zz) >> cat(" cradle and all. \n" , file = zz) >> cat("{Nursery rime} \n" , file = zz) >> close(zz) >> dummy.example <- ttda.get.text(textfile = "stupid.txt") >> dummy.example <- ttda.uce(dummy.example) > error in identical(native.enc, MacRoman) : > native.enc not found > > it lamentably fails. > > how about this ? > -- > --~~ Toulouse, Grenoble, Auch, Arcachon, B??ziers, Paris, > Saragosse, L??vignac Sur Save, habitats naturel du Valdo. ~~-- > <http://www.le-valdo.com> > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html > >-- Jean-Pierre M??ller SSP / BFSH2 / UNIL / CH - 1015 Lausanne Voice:+41 21 692 3116 / Fax:+41 21 692 3115 Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html S'il vous pla??t, ??vitez de m'envoyer des attachements au format Word ou PowerPoint. Voir http://www.gnu.org/philosophy/no-word-attachments.fr.html
No problem. Tant pis. 2005/8/29, Jean-Pierre Muller <Jean-Pierre.Mueller at unil.ch>:> Hello Laurent, > > Yes, i know there is a problem with ttda. > I had no time to work on ttda, wich is broken since R version 2.1. > This new version of R has introduced many new ways to deal with text ( > use of utf by default, grep & family modifications; so i have a lot of > small modifications to do) > I will contact you when the next version is out. > > Sorry for this bad news.-- --~~ Toulouse, Grenoble, Auch, Arcachon, B??ziers, Paris, Saragosse, L??vignac Sur Save, habitats naturel du Valdo. ~~-- <http://www.le-valdo.com>