title: Unable to Install devtools in R on Jenkins
body: <p>I'm building a Jenkins Job to test a library.</p>
  <p>I'm doing most of the scripts work in the <a href="https://hub.docker.com/_/r-base" rel="nofollow noreferrer">r-base docker image</a>.</p>
  <p>When I try to install dev tools via <code>Rscript -e</code></p>
  <pre><code>dir.create(Sys.getenv(&quot;R_LIBS_USER&quot;), recursive = TRUE)  # create personal library
                            .libPaths(Sys.getenv(&quot;R_LIBS_USER&quot;))  # add to the path 
                 
  install.packages(&quot;devtools&quot;)
  
  install_allstate_github &lt;- function(user, repo, ...) {
         tmp_dir &lt;- &quot;$app_dir/ravenclaw&quot;
  
         devtools::install(tmp_dir, dependencies = TRUE)
  }
  
  install_allstate_github(&quot;SortingHat&quot;, &quot;ravenclaw&quot;)
  
  library(ravenclaw)
  </code></pre>
  <p>I get the following error</p>
  <pre><code>Warning message:
  In dir.create(Sys.getenv(&quot;R_LIBS_USER&quot;), recursive = TRUE) :
    '/export/home/compjenk/workspace/ISG-Sorting-Hat/Ravenclaw/r-libs' already exists
  Installing package into ���/export/home/compjenk/workspace/ISG-Sorting-Hat/Ravenclaw/r-libs���
  (as ���lib��� is unspecified)
  Warning: unable to access index for repository https://****:****@artifactory.allstate.com/artifactory/cran/src/contrib:
    cannot open URL 'https://****:****@artifactory.allstate.com/artifactory/cran/src/contrib/PACKAGES'
  Warning messages:
  1: In gzfile(file, &quot;rb&quot;) :
    cannot open compressed file '/tmp/RtmpQGoABw/repos_https://****:****@artifactory.allstate.com/artifactory/cran/src/contrib.rds', probable reason 'No such file or directory'
  2: package ���devtools��� is not available (for R version 4.0.2) 
  Error in loadNamespace(name) : there is no package called ���devtools���
  Calls: install_allstate_github ... loadNamespace -&gt; withRestarts -&gt; withOneRestart -&gt; doWithOneRestart
  Execution halted
  </code></pre>
  <p>I've set the corporate CRAN server in .Rprofile as well as Proxy information but it doesn't seem to help.</p>
  <p><em>.Rprofile</em></p>
  <pre><code>local({
         r &lt;- list(&quot;cran&quot; = &quot;https://****:****@artifactory.allstate.com/artifactory/cran/&quot;)
         options(repos = r)
         options(RCurlOptions = list(ssl.verifypeer = FALSE, 
                                     ssl.verify = FALSE,
                                     proxy = &quot;http://webproxy:8080&quot;))
         #set_config( config( ssl_verifypeer = 0L ) )
         Sys.setenv(http_proxy = &quot;http://webproxy:8080&quot;)
         Sys.setenv(https_proxy = &quot;https://webproxy:8080&quot;)
  </code></pre>
  <p>So What am I missing or doing wrong? why can't I install devTools?</p>