hi, Am Mittwoch, 27. August 2014, 09:56:14 schrieb Milan Bouchet-Valat: > Honestly, I'm not sure I like it. It would look like > # Getter: OK > HTMLFile() > # Setter: weird > HTMLFile() <- "/my/path" > > What do you both think about it? I think R is pretty inconsistent > already, with par(cex=3) instead of par("cex") <- 3.
i implemented something similar in koRpus with functions explicitly called "get.kRp.env()" and "set.kRp.env()", instead of "kRp.env()" and "kRp.env()<-". so far no-one complained ;-) i do use the "()<-" notation when i'm changing values of objects in .GlobalEnv; e.g., change the language setting of a text object by language(object) <- "en" as this feels much more intuitive than something like yourFunct(obj, lang="en") so, if i did this, set.HTMLFile() and get.HTMLFile() or similar would be my naming of choice. viele grüße :: 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
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------------ Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/
_______________________________________________ RKWard-devel mailing list RKWard-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rkward-devel