[ 
https://issues.apache.org/jira/browse/ARROW-12743?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17472612#comment-17472612
 ] 

Dragoș Moldovan-Grünfeld edited comment on ARROW-12743 at 1/11/22, 9:53 AM:
----------------------------------------------------------------------------

There seems to be a [bug in 
\{remotes}|https://github.com/r-lib/remotes/issues/642] when trying to install 
dependencies from the {{"Config/Needs/..."}} fields. The package or packages 
listed there are installed, but not their dependencies.

Reprex (needs to be run inside a package that has {{Config/Needs/website: 
pkgdown}} in DESCRIPTION:
{code:r}
# fs and memoise are pkgdown dependencies
remove.packages(c("pkgdown", "fs", "memoise")) 
remotes::install_deps(".", dependencies = "Config/Needs/website")
packageVersion("pkgdown")
# [1] ‘2.0.1’
packageVersion("fs")
# Error in packageVersion("fs") : there is no package called ‘fs’
packageVersion("memoise")
# Error in packageVersion("memoise") : there is no package called ‘memoise’
{code}
adding {{"soft"}} or {{"hard"}} to {{dependencies}} works, but that seems 
non-canonical use of those options and, thus, could change without warning.
{code:r}
remotes::install_deps(".", dependencies = c("hard", "Config/Needs/website"))
# or
remotes::install_deps(".", dependencies = c("soft", "Config/Needs/website"))
{code}
In conclusion, I propose we delay using the {{Config/Needs/...}} field in 
DESCRIPTION until either the \{remotes} issue is solved or we switch to \{pak} 
for package installation.


was (Author: dragosmg):
There seems to be a [bug in 
\{remotes}|https://github.com/r-lib/remotes/issues/642] when trying to install 
dependencies from the {{"Config/Needs/..."}} fields. The package or packages 
listed there are installed, but not their dependencies.

Reprex (needs to be run inside a package that has {{Config/Needs/website: 
pkgdown}} in DESCRIPTION:
{code:r}
# fs and memoise are pkgdown dependencies
remove.packages(c("pkgdown", "fs", "memoise")) 
remotes::install_deps(".", dependencies = "Config/Needs/website")
packageVersion("pkgdown")
# [1] ‘2.0.1’
packageVersion("fs")
# Error in packageVersion("fs") : there is no package called ‘fs’
packageVersion("memoise")
# Error in packageVersion("memoise") : there is no package called ‘memoise’
{code}
adding {{"soft"}} or {{"hard"}} to {{dependencies}} works, but that seems 
non-canonical use of those options and, thus, could change without warning.
{code:r}
remotes::install_deps(".", dependencies = c("hard", "Config/Needs/website"))
# or
remotes::install_deps(".", dependencies = c("soft", "Config/Needs/website"))
{code}
In conclusion, I propose we delay using the {{Config/Needs/...}} field in 
DESCRIPTION until the \{remotes} issue is solved or we switch to \{pak} for 
package installation. 

> [R] Add additional DESCRIPTION fields for dev dependencies and update docs 
> accordingly
> --------------------------------------------------------------------------------------
>
>                 Key: ARROW-12743
>                 URL: https://issues.apache.org/jira/browse/ARROW-12743
>             Project: Apache Arrow
>          Issue Type: Sub-task
>          Components: R
>            Reporter: Nicola Crane
>            Assignee: Dragoș Moldovan-Grünfeld
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 7.0.0
>
>          Time Spent: 4h 20m
>  Remaining Estimate: 0h
>
> Recent updates to the remotes package mean that additional fields can be 
> added to a package's DESCRIPTION and remotes functions can take the field as 
> a parameter and install these additional dependencies: 
> https://github.com/r-lib/remotes/blob/master/NEWS.md#new-functions-and-features
> We could update DESCRIPTION to use these fields and update the docs to use 
> this functionality of remotes instead of having separate references to 
> packages to install.
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to