[R] Automatically install package dependencies

David Winsemius dwinsemius at comcast.net
Thu May 31 03:17:32 CEST 2012


On May 30, 2012, at 6:36 PM, Ronaldo Reis Júnior wrote:

> Hi,
>
> I have a R Package. It is working, but I can't that it install the
> dependencies automatically. When I try to install I receive this  
> message:
>
>> install.packages("./RT4Bio_1.0.tar.gz",dependencies=TRUE)
> Installing package(s) into '/usr/local/lib/R/site-library'
> (as 'lib' is unspecified)
> inferring 'repos = NULL' from the file name

Please read all of the messages

> ERROR: dependency 'ReadImages' is not available for package 'RT4Bio'
> * removing '/usr/local/lib/R/site-library/RT4Bio'
> Mensagens de aviso perdidas:
> In install.packages("./RT4Bio_1.0.tar.gz", dependencies = TRUE) :
>   installation of package './RT4Bio_1.0.tar.gz' had non-zero exit  
> status
>
> But in description of the package I have this tag:
>
> Depends: ReadImages, MASS, survival
>
> Why R don't get the ReadImages package and install it automatically?

install.packages() is not set up to do a pan-repository scan by  
default. You would need to offer an argument to 'repos'.

-- 
David.

>
> Thanks
> Ronaldo
>
> -- 
> 5ª lei - Se você acha que está certo e é capaz de convencer o seu
>          orientador, ele será muito feliz.
>
>       --Herman, I. P. 2007. Following the law. NATURE, Vol 445, p.  
> 228.
>
>> Prof. Ronaldo Reis Júnior
> |  .''`. UNIMONTES/DBG/Lab. Ecologia Comportamental e Computacional
> | : :'  : Campus Universitário Prof. Darcy Ribeiro, Vila Mauricéia
> | `. `'` CP: 126, CEP: 39401-089, Montes Claros - MG - Brasil
> |   `- Fone: (38) 3229-8192 | ronaldo.reis at unimontes.br
> | http://www.ppgcb.unimontes.br/lecc | LinuxUser#: 205366
>
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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.

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list