[R] defmacro installation issue

R. Michael Weylandt michael.weylandt at gmail.com
Thu Jan 12 15:21:16 CET 2012


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 <razuki at 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 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.



More information about the R-help mailing list