title: r-cran artifactory repository setup
body: <p>Has anyone successfully setup a CRAN repository in Artifactory? </p>
  
  <p>I have setup the local, remote, and virtual repos, but I am having trouble pushing an R package successfully to Artifactory: </p>
  
  <pre><code>install.packages('mypackage', repos='https://my.artifactory/artifactory/cran') 
  </code></pre>
  
  <p>This is the error:</p>
  
  <pre><code>Warning in install.packages :
    URL 'https://my.artifactory/artifactory/cran/src/contrib/PACKAGES.gz': status was '401 Unauthorized'
  </code></pre>
  
  <p>Part of the issue might be the expected default layout of a CRAN repo does not match my simple repo, and part may be that I have no idea how to supply user credentials for Artifactory authentication when I try to upload a package. </p>
  
  <p>If anyone has helpful ideas, or can point me to a blog post I would appreciate it. </p>
  
  <p>NOTE: I have also installed the recommended Artifactory plugin: <code>expirePackagesMetadata.groovy</code></p>