Ok, thanks a lot for ?Rscript Best regards
Vincent ________________________________ Dr Vincent Chouraki Assistant hospitalier universitaire Service d'épidémiologie régional CHRU de Lille, France ________________________________ De : peter dalgaard <pda...@gmail.com> Cc : r-help@r-project.org Envoyé le : Ven 1 juillet 2011, 13h 41min 52s Objet : Re: [R] methods package not loaded by default when using Rscript in R2.13 On Jul 1, 2011, at 12:52 , vincent chouraki wrote: > Dear all, > > As the object of this mail suggests, the methods package is not loaded by > default in R2.13 when using Rscript whereas it is loaded when using an > interactive session. > > An example with the metafor package : > > library(metafor) > example(addpoly.rma) > > this works in an interaction R shell, but put it in a .R file and use it with > Rscript, it won't work until you added > > library(methods) > > One of my colleague had the same issue with other custom R functions (work in > 2.12, not anymore in 2.13 because of the same behavior) > > Is this something that was planned or a bug? It's intentional. See help(Rscript) for the reason and the remedies. -pd -- Peter Dalgaard Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Email: pd....@cbs.dk Priv: pda...@gmail.com [[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.