title: Error installing sparklyr package
body: <p>I'm getting this error when installing sparklyr package on my local machine:</p>
  
  <p>I also tried installing the development version but get the same error.</p>
  
  <pre><code>install.packages("sparklyr")
   trying URL 
  'https://cran.rstudio.com/bin/macosx/mavericks/contrib/3.3/sparklyr_0.5.3.tgz'
   Content type 'application/x-gzip' length 1025493 bytes (1001 KB)
  
   downloaded 1001 KB
   The downloaded binary packages are in
  /var/folders/m8/y4hvcvrx4233n10636g64mlh0000gn/T//Rtmp12G7T0/downloaded_packages
  library(sparklyr)
  Error : object 'sql_build' not found whilst loading namespace 'sparklyr'
  Error: package or namespace load failed for ‘sparklyr’
  </code></pre>
  
  <p>When I try installing the dev version I get a different error:</p>
  
  <pre><code>devtools::install_github("rstudio/sparklyr") 
  
  Downloading GitHub repo rstudio/sparklyr@master
  from URL https://api.github.com/repos/rstudio/sparklyr/zipball/master       
  Installing sparklyr
   '/Library/Frameworks/R.framework/Resources/bin/R' --no-site-file --no-environ 
  --no-save --no-restore --quiet CMD  \
   INSTALL  \
  '/private/var/folders/m8/y4hvcvrx4233n10636g64mlh0000gn/T
  /Rtmp12G7T0/devtools258834121166/rstudio-sparklyr-5817985'  \
  --library='/Library/Frameworks/R.framework/Versions/3.3/Resources/library' --
  install-tests 
  
  * installing *source* package ‘sparklyr’ ...
  ** R
  ** inst
  ** tests
  ** preparing package for lazy loading
  ** help
  *** installing help indices
  ** building package indices
  ** testing if installed package can be loaded
  * DONE (sparklyr)
   &gt; library(sparklyr)
   Error in get(Info[i, 1], envir = env) : 
   lazy-load database 
  
  '/Library/Frameworks/R.framework/Versions/3.3/Resources/library/
  sparklyr/R/sparklyr.rdb' is corrupt
  In addition: Warning message:
  In get(Info[i, 1], envir = env) : internal error -3 in R_decompress1
  Error: package or namespace load failed for ‘sparklyr’
  </code></pre>
  
  <p>Any help will be greatly appreciated. </p>
  
  <p>Best,</p>
  
  <p>Albit</p>