From simon.urbanek at r-project.org  Thu May  2 16:05:43 2013
From: simon.urbanek at r-project.org (Simon Urbanek)
Date: Thu, 2 May 2013 10:05:43 -0400
Subject: [Rd] install.packages from own rpository - depencies
In-Reply-To: <51827110.4010009@knut-krueger.de>
References: <51827110.4010009@knut-krueger.de>
Message-ID: <C3240E98-3917-48AB-B657-C0C291B5DC5F@r-project.org>

On May 2, 2013, at 9:58 AM, Knut Krueger wrote:

> I am trying to setup a respository for students with a own package.
> Its working fine when the depended packages are already installed with:
> install.packages("mypackage", type="source",repos="http://myrepository.example.com")
> 
> but if the the dependencies are not already installed I get the following error:
> ERROR: dependencies 'igraph', 'chron', 'gdata' are not available for package 'mypackage'
> * removing 'C:/.../mypackage'
> 

You should add the repositories for the dependencies as well, e.g.:

install.packages("mypackage", type="source",repos=c("http://myrepository.example.com", "http://cran.r-project.org/"))

or make your repository more complete (e.g. if you want to pin certain versions to guarantee interoperability).

Cheers,
Simon



[Rd] install.packages from own rpository - depencies
Simon Urbanek