Skip to content
Back to formatted view

Raw Message

Message-ID: <14094729.c4fSE1VY0n@yrla>
Date: 2018-02-25T13:20:32Z
From: meik michalke
Subject: [R-pkg-devel] How to (conditionally) use an archived package (without Suggests)?
In-Reply-To: <23186.44456.424091.706602@rob.eddelbuettel.com>

Am Sonntag, 25. Februar 2018, 06:35:52 CET schrieb Dirk Eddelbuettel:
> On 25 February 2018 at 11:51, meik michalke wrote:
> | 'Additional_repositories' is meant for R package repositories, it won't
> | work  with source code git repos. if a package is in 'Suggests' and can't
> | be found
> You missed the part where we create packages ("R CMD build") out of source
> repos, and then place those packages in package repos.  That is what drat is
> for.

maybe you missed the part where the OP tried to use
https://github.com/waddella/loon in 'Additional_repositories'? AFAIK you can't 
use a simple git source code repository of a package.

i'm maintaining various alternative repos myself ( https://reaktanz.de/R/ ; 
https://files.kde.org/rkward/R/ ; https://undocumeantit.github.io/repos/l10n/ 
) using roxyPackage instead of drat.

> And with Additional_repositories, it plays with the install.packages() and
> update.packages() functions just as it should -- because package dependency
> resolution is a powerful mechanism we like to use whereever possible.

do you mean that a dependency is automatically fetched and installed from an 
*alternative* repo configured via 'Additional_repositories'? i didn't get that 
to work. i only ever managed CRAN to see that the package is there during 
checks, but not install it.

take the 'sylly' package:
  https://cran.r-project.org/package=sylly

it has

  Additional_repositories: https://undocumeantit.github.io/repos/l10n

in its DESCRIPTION and suggests 'sylly.de', 'sylly.en', and 'sylly.es'. but 
when i run

  install.packages("sylly", dependencies=TRUE)

i get:

  Warning: dependencies ?testthat?, ?sylly.de?, ?sylly.en?, ?sylly.es? are not
    available

am i missing something?


viele gr??e :: m.eik

-- 
  dipl. psych. meik michalke
  abt. f"ur diagnostik und differentielle psychologie
  institut f"ur experimentelle psychologie
  heinrich-heine-universit"at                             
  geb"aude 23.03.00.26        |  tel +49 (0)211 8113498
  40204 d"usseldorf           |  fax +49 (0)211 8111753

  http://www.psycho.hhu.de    https://reaktanz.de
  https://rkward.kde.org      https://twitter.com/RKWardNet

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part.
URL: <https://stat.ethz.ch/pipermail/r-package-devel/attachments/20180225/76cc2630/attachment.sig>