R package dependencies not installed from Additional_repositories

后端 未结 3 572
栀梦
栀梦 2020-12-19 15:42

I am developing a package that requires the namespace of another package, OpenMx. This package is only available from it\'s own repository, but specifying this repository in

3条回答
  •  既然无缘
    2020-12-19 15:57

    AFAIK Additional_repositories is still a free-form field and not automatically added to the options("repos") consulted by download.packages() and hence install.packages() or update.packages().

    For the very problem of adding repos beyond CRAN, I wrote a little helper package drat which a few people, myself included, use to host repos either on GitHub (a "default" mode as it is so easy via gh-pages) or any other http-accessible server---ie local servers within a company or workgroup. Drat does nothing particularly difficult, but for this default case of adding a repository of user, say, openmx, all you need is drat::addRepo("openmx") and the rest is inferred from defaults (and assumes a drat repo in account openmx exists).

    I deploy both use cases: newer packages via repos at GitHub, and a work-local repo.

    Edit: But WRE says

    The 'Addiitonal_repositories' field is a comma-separated list of repository URLs where the packages named in the other fields may be found. It is currently used by 'R CMD check' to check that the packages can be found, at least as source packages (which can be installed on any platform).

    which implies it looks there. Odd. And the repo looks legit at the given URL.

    Edit 2: And I sent a patch to R Core for the typo in the above quote.

提交回复
热议问题