[R] How do I install (download) a package with my own package?

2010-10-28 Thread Ian Schiller
I want to create my own package in which some of my functions depend on 
functions already existing in another package that is not part of the default 
library (i.e. when you install R for the first time, you need to download that 
package to access the functions.)

Is there a way to bundle this existing package with the package I will create 
so that one doesn't have to install my package and then the package in which 
some of my functions depend on?

Thanks!

Ian

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] How do I install (download) a package with my own package?

2010-10-28 Thread Uwe Ligges

See Writing R Extensions:
You can declare dependencies and install.packages(...) and its argument 
dependencies can handle automatical installation of dependencies.


Uwe Ligges


On 28.10.2010 21:13, Ian Schiller wrote:

I want to create my own package in which some of my functions depend on 
functions already existing in another package that is not part of the default 
library (i.e. when you install R for the first time, you need to download that 
package to access the functions.)

Is there a way to bundle this existing package with the package I will create 
so that one doesn't have to install my package and then the package in which 
some of my functions depend on?

Thanks!

Ian

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.