Works for me. Did you actually load the library or just install it? Try this:
library(gtools) example(defmacro) Michael On Thu, Jan 12, 2012 at 6:18 AM, ikuzar <raz...@hotmail.fr> wrote: > Hi everybody, > > I want to use macro in my R code. But defmacro was not in my libraries. So I > installed it : > >> install.packages("gtools") > Installing package(s) into ‘C:/Program Files/R/R-2.13.2/library’ > (as ‘lib’ is unspecified) > essai de l'URL > 'http://cran.cict.fr/bin/windows/contrib/2.13/gtools_2.6.2.zip' > Content type 'application/zip' length 102500 bytes (100 Kb) > URL ouverte > downloaded 100 Kb > > package 'gtools' successfully unpacked and MD5 sums checked > > The downloaded packages are in > C:\Documents and Settings\moi\Local > Settings\Temp\Rtmpo4PnEY\downloaded_packages > > but when I run the program, I got an error message : "Erreur : impossible de > trouver la fonction "defmacro"" > <=> defmacro was not found > > thanks for your help > > -- > View this message in context: > http://r.789695.n4.nabble.com/defmacro-installation-issue-tp4288650p4288650.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > 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. ______________________________________________ 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.