Re: [R] Adding a function with default parameters into the Rcmdr menu

2012-11-23 Thread vincent guyader
I will try this. thank you. 2012/11/23 Milan Bouchet-Valat > Le vendredi 23 novembre 2012 à 03:17 +0100, vincent guyader a écrit : > > Hi everyone, > > > > I made some tests with Rcmdr, to add a function with default parameters : > > > > For example (very simple): > > > > myfunction<-function(v

Re: [R] Adding a function with default parameters into the Rcmdr menu

2012-11-23 Thread Milan Bouchet-Valat
Le vendredi 23 novembre 2012 à 03:17 +0100, vincent guyader a écrit : > Hi everyone, > > I made some tests with Rcmdr, to add a function with default parameters : > > For example (very simple): > > myfunction<-function(var="314"){ > print("hello") > print(var) > } > > if I run myfunction() dire

[R] Adding a function with default parameters into the Rcmdr menu

2012-11-22 Thread vincent guyader
Hi everyone, I made some tests with Rcmdr, to add a function with default parameters : For example (very simple): myfunction<-function(var="314"){ print("hello") print(var) } if I run myfunction() directly i see : > myfunction() [1] "hello" [1] "314" it's ok. But if i edit de Rcmdr-menu.txt