Skip to content

defmacro installation issue

3 messages · ikuzar, R. Michael Weylandt, Uwe Ligges

#
Hi everybody, 

I want to use macro in my R code. But defmacro was not in my libraries. So I
installed it :
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.
#
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:
#
You have to load the gtools package via library() or require() before 
you can make use of the function.

Uwe Ligges
On 12.01.2012 12:18, ikuzar wrote: