You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Jonathan Keane (Jira)" <ji...@apache.org> on 2021/03/18 14:27:00 UTC

[jira] [Commented] (ARROW-11965) [R][Docs] Fix install.packages command in R dev docs

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

Jonathan Keane commented on ARROW-11965:
----------------------------------------

I think this by-and-large has been resolved by https://github.com/Homebrew/homebrew-core/pull/73315, but we should probably add a bit of content that mentions the (now less likely) possible failure modes for people not familiar with R:

* at least mention that one might need to set a cran mirror if one hasn't before
* that if installing the dependencies from source fails there are likely config messages in the scrollback that can help (most packages that fail because some system dependency isn't present say that, though the place that that is in the logs isn't a helpful one and it's usually waaaay up in the scrollback)
* maybe pare back what we install to only {devtools} or possibly only install {remotes} with {{remotes::install_deps(dependencies = TRUE)}} since remotes has significantly fewer dependencies 

> [R][Docs] Fix install.packages command in R dev docs
> ----------------------------------------------------
>
>                 Key: ARROW-11965
>                 URL: https://issues.apache.org/jira/browse/ARROW-11965
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Documentation, R
>            Reporter: Diana Clarke
>            Assignee: Mauricio 'Pachá' Vargas Sepúlveda
>            Priority: Minor
>
> Fix the following R command.
> {code:java}
> R -e 'install.packages(c("devtools", "roxygen2", "pkgdown", "covr")); devtools::install_dev_deps()'
> {code}
> Found in the following section of these docs: [https://arrow.apache.org/docs/r/]
> {code:java}
> cd ../../r
> R -e 'install.packages(c("devtools", "roxygen2", "pkgdown", "covr")); devtools::install_dev_deps()'
> R CMD INSTALL .
> {code}
> Here are the errors I got:
> {code:java}
> Error in contrib.url(repos, type) :
>   trying to use CRAN without setting a mirror
> {code}
> So instead I did that from an R prompt (and picked a mirror). Which mostly worked, except for this error:
> {code:java}
> Error in loadNamespace(name) : there is no package called 'devtools'
> ERROR: dependency ‘systemfonts’ is not available for package ‘textshaping’
> * removing ‘/usr/local/Cellar/r/4.0.4/lib/R/library/textshaping’
> ERROR: dependency ‘gert’ is not available for package ‘usethis’
> * removing ‘/usr/local/Cellar/r/4.0.4/lib/R/library/usethis’
> ERROR: dependencies ‘systemfonts’, ‘textshaping’ are not available for package ‘ragg’
> * removing ‘/usr/local/Cellar/r/4.0.4/lib/R/library/ragg’
> ERROR: dependency ‘usethis’ is not available for package ‘devtools’
> * removing ‘/usr/local/Cellar/r/4.0.4/lib/R/library/devtools’
> ERROR: dependency ‘ragg’ is not available for package ‘pkgdown’
> * removing ‘/usr/local/Cellar/r/4.0.4/lib/R/library/pkgdown’
> {code}
> Which I ignored and just tried "{{R CMD INSTALL .}}" again, but then I got this error:
> {code:java}
> ERROR: dependencies 'bit64', 'tidyselect' are not available for package 'arrow'
> {code}
> So then I also did this from an R prompt:
> {code:java}
> install.packages(c("bit64", "tidyselect"))
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)