Re: [R] function call from another r file

2012-11-25 Thread sheenmaria
Yes.I have added #!/usr/bin/Rscript library(rJava) .jinit() in the beginning of es.r On Mon, Nov 26, 2012 at 11:14 AM, David Winsemius [via R] < ml-node+s789695n4650807...@n4.nabble.com> wrote: > > On Nov 25, 2012, at 8:50 PM, sheenmaria wrote: > > > Thanks for the reply .I am able to call a sim

Re: [R] function call from another r file

2012-11-25 Thread David Winsemius
On Nov 25, 2012, at 8:50 PM, sheenmaria wrote: Thanks for the reply .I am able to call a simple function in an R file from another by using source(). Now I am facing another issue .I am trying to call a r file named es.r which have lotes of R functions. These R functions are internally cal

Re: [R] function call from another r file

2012-11-25 Thread sheenmaria
Thanks for the reply .I am able to call a simple function in an R file from another by using source(). Now I am facing another issue .I am trying to call a r file named es.r which have lotes of R functions. These R functions are internally calling java functions by using ".jnew()" and ".jcall()". I

Re: [R] function call from another r file

2012-11-24 Thread Barry Rowlingson
On Sat, Nov 24, 2012 at 12:26 PM, Suzen, Mehmet wrote: > If you want to handle a generic case, best thing is to create an R > package. And better than best is to use devtools to save you a fiddly edit/build/install cycle. You don't even have to think of it as a package, its just a folder called R

Re: [R] function call from another r file

2012-11-24 Thread Suzen, Mehmet
If you want to handle a generic case, best thing is to create an R package. It is much easier to manage that using source(), if you have lots of different functionality and data files. Also look at ?system.file. On Sat, Nov 24, 2012 at 7:49 AM, Jeff Newmiller wrote: > It is straightforward to loa

Re: [R] function call from another r file

2012-11-23 Thread Jeff Newmiller
It is straightforward to load function definitions into memory using the source() function. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go...