Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
When I install devtools, I get shiny as a dependency.
> install.packages("devtools")
Installing package into ‘/Users/xxx/tmp/xxx/packrat/lib/x86_64-apple-darwin15.6.0/3.5.3’
(as ‘lib’ is unspecified)
also installing the dependencies ‘zeallot’, ‘colorspace’, ‘utf8’, ‘vctrs’,
‘plyr’, ‘labeling’, ‘munsell’, ‘RColorBrewer’, ‘fansi’, ‘pillar’,
‘pkgconfig’, ‘httpuv’, ‘xtable’, ‘sourcetools’, ‘fastmap’, ‘gtable’,
‘reshape2’, ‘scales’, ‘tibble’, ‘viridisLite’, ‘sys’, ‘ini’, ‘backports’,
‘ps’, ‘lazyeval’, ‘shiny’, ‘ggplot2’, ‘later’, ‘askpass’, ‘clipr’,
‘clisymbols’, ‘curl’, ‘fs’, ‘gh’, ‘purrr’, ‘rprojroot’, ‘whisker’, ‘yaml’,
‘processx’, ‘R6’, ‘assertthat’, ‘rex’, ‘htmltools’, ‘htmlwidgets’,
‘magrittr’, ‘crosstalk’, ‘promises’, ‘mime’, ‘openssl’, ‘prettyunits’,
‘xopen’, ‘brew’, ‘commonmark’, ‘Rcpp’, ‘stringi’, ‘stringr’, ‘xml2’,
‘evaluate’, ‘praise’, ‘usethis’, ‘callr’, ‘cli’, ‘covr’, ‘crayon’, ‘desc’,
‘digest’, ‘DT’, ‘ellipsis’, ‘glue’, ‘git2r’, ‘httr’, ‘jsonlite’,
‘memoise’, ‘pkgbuild’, ‘pkgload’, ‘rcmdcheck’, ‘remotes’, ‘rlang’,
‘roxygen2’, ‘rstudioapi’, ‘rversions’, ‘sessioninfo’, ‘testthat’, ‘withr’
How does this make any sense? Is this expected, and if yes, how can I prevent it from happening? I am using R 3.5.3 with 0-Cloud mirror.
If you play around with tools::package_dependencies() a little bit you will eventually find that devtools imports the package DT, which in turn imports the package crosstalk which in turn imports the package shiny.
So why does devtools import DT?
A quick search of the github repo for devtools reveals the following NEWS.md item from version 2.2.0:
Add the DT package as a dependency, so that test_coverage() and test_coverage_file() work without having to install additional packages (#2085).
Why did the package author make this choice? Well if you read the referenced issue you'll see there was actually some disagreement about it between two devs and it seems like it was added because it was causing additional package installs that at least one of them found annoying.
This discussion was referenced in yet another issue with even more discussion here where other devs complained about it at length, including a comment recently by yourself.
And thus, the snake that is this Q&A has now swallowed its tail.
Related
Please I need help with this. When I run install package for the tidyverse:
install.packages("tidyverse")
I get this message:
also installing the dependencies ‘colorspace’, ‘sys’, ‘bit’, ‘ps’, ‘sass’, ‘cachem’, ‘memoise’, ‘base64enc’, ‘fastmap’, ‘farver’, ‘labeling’, ‘munsell’, ‘RColorBrewer’, ‘viridisLite’, ‘rappdirs’, ‘rematch’, ‘askpass’, ‘bit64’, ‘prettyunits’, ‘processx’, ‘evaluate’, ‘highr’, ‘yaml’, ‘xfun’, ‘bslib’, ‘htmltools’, ‘jquerylib’, ‘tinytex’, ‘backports’, ‘ellipsis’, ‘generics’, ‘glue’, ‘assertthat’, ‘blob’, ‘DBI’, ‘lifecycle’, ‘R6’, ‘tidyselect’, ‘vctrs’, ‘withr’, ‘data.table’, ‘digest’, ‘gtable’, ‘isoband’, ‘scales’, ‘gargle’, ‘uuid’, ‘cellranger’, ‘curl’, ‘ids’, ‘rematch2’, ‘cpp11’, ‘pkgconfig’, ‘mime’, ‘openssl’, ‘fansi’, ‘utf8’, ‘clipr’, ‘vroom’, ‘tzdb’, ‘progress’, ‘callr’, ‘fs’, ‘knitr’, ‘rmarkdown’, ‘selectr’, ‘stringi’, ‘broom’, ‘cli’, ‘crayon’, ‘dbplyr’, ‘dplyr’, ‘dtplyr’, ‘forcats’, ‘ggplot2’, ‘googledrive’, ‘googlesheets4’, ‘haven’, ‘hms’, ‘httr’, ‘jsonlite’, ‘lubridate’, ‘magrittr’, ‘modelr’, ‘pillar’, ‘purrr’, ‘readr’, ‘readxl’, ‘reprex’, ‘rlang’, ‘rstudioapi’, ‘rvest’, ‘stringr’, ‘tibble’, ‘tidyr’, ‘xml2’
There is a binary version available but the source version is later:
binary source needs_compilation
dplyr 1.0.9 1.0.10 TRUE
I've looked for a duplicate on Stack Overflow and can't find one, so:
This is not an error message. The key line is
There is a binary version available but the source version is later
At this point R pauses and asks whether you want to try installing from source: it is simplest and easiest to say "no" (typing "n" should work). The only drawback is that you will get a slightly older version of the package installed. If you say "yes" (or "y" or "Y"), R will try to install from source, which will (1) not work unless you have development tools installed, (2) take a little bit longer (but it will provide you with the most recent version of the package).
As of 18 Nov 2021, I've downloaded all the tar.gz files that tidyverse imports/depends/suggests. I'm working on a RedHat OS and, unfortunately, I don't have an Internet connection to this machine. I have all those files in a folder. Then I use this command
install.packages(
# i use setwd() to make my tar.gz directory equal to my current working directory
destdir = ".",
pkgs = c(...), # I list all relevant tar.gz here, e.g. c("foo_tar.gz", "bar_tar.gz")
dependencies = c("Depends", "Imports", "Suggests"),
quiet = FALSE,
repos = NULL
)
But I get this error message
ERROR: dependencies ‘broom’, ‘cli’, ‘crayon’, ‘dbplyr’, ‘dplyr’, ‘dtplyr’, ‘forcats’, ‘googledrive’, ‘googlesheets4’, ‘ggplot2’, ‘haven’, ‘hms’, ‘httr’, ‘jsonlite’, ‘lubridate’, ‘magrittr’, ‘modelr’, ‘pillar’, ‘purrr’, ‘readr’, ‘readxl’, ‘reprex’, ‘rlang’, ‘rstudioapi’, ‘rvest’, ‘stringr’, ‘tibble’, ‘tidyr’, ‘xml2’ are not available for package ‘tidyverse’
Every one of those files are in my working directory. I'm using R version 3.6, which is compatible with the downloaded version of tidyverse. Why can't the installer find these files?
Need to run tools::write_PACKAGES before executing install.packages.
Even though the tar.gz files are in the same folder, the PACKAGES file must be populated to properly account for dependencies. Otherwise, the install.packages function doesn't know how the packages are related. Would be nice if that error message was more specific.
I have started to learn Rprogramming on my own through Coursera platform. Even after following all the steps taught to us through video class, I cannot install the "ggplot2" package by entering the following code in the console
install.packages("ggplot2")
the output I got after running the above code is as follows
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/DEEPAK K R/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
also installing the dependencies ‘ps’, ‘processx’, ‘callr’, ‘prettyunits’, ‘backports’, ‘desc’, ‘pkgbuild’, ‘rprojroot’, ‘rstudioapi’, ‘evaluate’, ‘pkgload’, ‘praise’, ‘colorspace’, ‘assertthat’, ‘utf8’, ‘testthat’, ‘farver’, ‘labeling’, ‘lifecycle’, ‘munsell’, ‘R6’, ‘RColorBrewer’, ‘viridisLite’, ‘cli’, ‘crayon’, ‘ellipsis’, ‘fansi’, ‘magrittr’, ‘pillar’, ‘pkgconfig’, ‘vctrs’, ‘digest’, ‘glue’, ‘gtable’, ‘isoband’, ‘rlang’, ‘scales’, ‘tibble’, ‘withr’
I'm using windows 10.
looking forward to the answers!
I am facing some problem while installing shinytest in my laptop. Getting below error message. Can anyone help me here?
> install.packages("shinytest")
Installing package into ‘E:/Users/AAAA/BBB/R/win-library/3.6’
(as ‘lib’ is unspecified)
also installing the dependencies ‘ps’, ‘desc’, ‘pkgbuild’, ‘png’, ‘rematch2’, ‘processx’, ‘curl’, ‘pkgload’, ‘praise’, ‘showimage’, ‘debugme’, ‘parsedate’, ‘pingr’, ‘callr’, ‘httr’, ‘testthat’, ‘webdriver’, ‘rstudioapi’
There are binary versions available but the source versions are later:
binary source needs_compilation
ps 1.3.0 1.3.2 TRUE
callr 3.4.1 3.4.2 FALSE
It looks like some dependencies ('ps', 'callr') may be out of date.
Try running update.packages() before installing 'shinytest'.
Alternatively, you may try to install all the listed dependencies on by one ('ps', 'desc', 'pkgbuild', 'png',...)
I was using Levene's test to check the equality of variance in R. For this I installed the car package. I used the following command in R for this:
install.packages("car")
After running this command I got the following message:
Installing package into ‘C:/Users/DELL/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
also installing the dependencies ‘magrittr’, ‘pkgconfig’, ‘R6’, ‘BH’, ‘rematch’, ‘assertthat’, ‘fansi’, ‘utf8’, ‘forcats’, ‘hms’, ‘readr’, ‘cellranger’, ‘zip’, ‘cli’, ‘crayon’, ‘pillar’, ‘rlang’, ‘SparseM’, ‘MatrixModels’, ‘sp’, ‘haven’, ‘curl’, ‘data.table’, ‘readxl’, ‘openxlsx’, ‘tibble’, ‘minqa’, ‘nloptr’, ‘Rcpp’, ‘RcppEigen’, ‘carData’, ‘abind’, ‘pbkrtest’, ‘quantreg’, ‘maptools’, ‘rio’, ‘lme4’
In this list of dependencies, all the packages got installed except Rcpp. After this process, I tried to run the Levene's test and got the following error message
library(car)
leveneTest(Minimum1 ~ Type)
Error in leveneTest(Minimum1 ~ Type) :
could not find function "leveneTest"
Install 'hsm' package by using (install.packages("hms")) before loading 'car' package