title: LightGbm in r 3.5.2
body: <p>I am trying to install Lightgbm library in r 3.5.2.after millions of try i can do so. if anyone know how to install it?</p>
  
  <p>I have try these methods to install lightgbm but always an error occur of such type.</p>
  
  <p>1.</p>
  
  <blockquote>
    <p>Error in i.p(...) : 
      (converted from warning) installation of package ‘C:/Users/MUHAMM~1/AppData/Local/Temp/Rtmp4EX73g/file7d81a401a17/lightgbm_2.2.3.tar.gz’ had non-zero exit status
    In addition: Warning messages:
    1: In untar2(tarfile, files, list, exdir) :
      skipping pax global extended headers
    2: In untar2(tarfile, files, list, exdir) :
      skipping pax global extended headers</p>
  </blockquote>
  
  <p>2.</p>
  
  <blockquote>
    <p>Error in lgb.dl(commit = "master", compiler = "vs", repo = "<a href="https://github.com/Microsoft/LightGBM" rel="nofollow noreferrer">https://github.com/Microsoft/LightGBM</a>",  : 
      could not find function "lgb.dl"</p>
  </blockquote>
  
  <pre><code>#1
  install.packages('devtools')
  packageurl &lt;- "http://cran.r-project.org/src/contrib/Archive/lightgbm/lightgbm_3.5.2.tar.gz"
  install.packages(packageurl, contriburl=NULL, type="source")
  
  #2 
  download.file("https://github.com/hadley/lightgbm/archive/master.zip", destfile = "lightgbm.zip")
  
  #3
  lgb.dl(commit = "master",libdll = "C:\\xgboost\\LightGBM\\windows\\x64\\DLL\\lib_lightgbm.dll",
    # repo = "https://github.com/Microsoft/LightGBM",cores = 2)
  
  
  #4 
  lgb.dl(commit = "master", libdll = "C:\\LightGBM\\windows\\x64\\DLL\\lib_lightgbm.dll", # YOUR PRECOMPILED DLL
     #repo = "https://github.com/Microsoft/LightGBM")
  </code></pre>
  
  <blockquote>
    <p>Error in lgb.dl(commit = "master", compiler = "vs", repo = "<a href="https://github.com/Microsoft/LightGBM" rel="nofollow noreferrer">https://github.com/Microsoft/LightGBM</a>",  : 
      could not find function "lgb.dl"</p>
  </blockquote>
  
  <pre><code>#5
  lgb.dl(commit = "master", compiler = "vs", # Remove this for MinGW + GPU installation repo = "https://github.com/Microsoft/LightGBM", use_gpu = TRUE)
  
  #6
  lgb.dl(commit = "master", compiler = "vs", # Remove this for MinGW + GPU installation repo = "https://github.com/Microsoft/LightGBM",use_gpu = TRUE)
  </code></pre>