title: Why is my use of install.packages giving me dependency errors when I try installing tidyverse-packages?
body: <p>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</p>
  <pre><code>  install.packages(
      # i use setwd() to make my tar.gz directory equal to my current working directory
      destdir = &quot;.&quot;, 
      pkgs = c(...), # I list all relevant tar.gz here, e.g. c(&quot;foo_tar.gz&quot;, &quot;bar_tar.gz&quot;) 
      dependencies = c(&quot;Depends&quot;, &quot;Imports&quot;, &quot;Suggests&quot;), 
      quiet = FALSE, 
      repos = NULL
    )
  </code></pre>
  <p>But I get this error message</p>
  <pre><code>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’
  </code></pre>
  <p>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?</p>