[Roxygen-devel] error exporting "thisName<-" functions

meik michalke meik.michalke at uni-duesseldorf.de
Fri Aug 19 19:32:16 CEST 2011


hi,

when i define a function/method named like "functionName<-", it causes an 
error at installation time if the NAMESPACE file was created by roxygen2. the 
reason is simply the assignment operator "<-" in the name, which is needed for 
functionality like

 functionName(object) <- "new value"

to fix this, roxygenize() could simply quote the names of things to export in 
the created NAMESPACE file, because manually changing the entry did the trick:

fails:
 exportMethods(methodName<-) 

works:
 exportMethods("methodName<-")


best regards :: m.eik

-- 
dipl. psych. meik michalke
institut f"ur experimentelle psychologie
abt. f"ur diagnostik und differentielle psychologie
heinrich-heine-universit"at d-40204 d"usseldorf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.r-forge.r-project.org/pipermail/roxygen-devel/attachments/20110819/51a7db16/attachment.pgp>


More information about the Roxygen-devel mailing list