<div dir="ltr">1. When the acs.fetch() function is called without a key, the file_test does not set the file_test parameter .lib_loc. This causes it to fail on my Ubuntu 16.04 installation where the library is installed system wide at<div>"/usr/local/lib/R/site-library/acs". I am using acs.fetch through newer functionality in the package choroplethr.</div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div>a. These functions and variables are good candidates for the file_test parameter .lib_loc which defaults to NULL.</div></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><ul><li>.libPaths()<br></li><li>.Library.site<br></li></ul></div></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div>b. Alternatively, you could prepend the correct library path from .libPaths() to the string literal using paste() or stringr:str_c()</div></blockquote><div><br></div><div>2. Instead of using acs:api.key.install() because of the system folder permissions, I was able to manually create the directory using sudo/administrative commands.</div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div>> cd /usr/local/lib/R/site-library/acs</div><div>> sudo mkdir exdata</div><div>> sudo cp /home/<user_name>/key.rda exdata</div></blockquote><div><br></div><div>3. I usually use the command line to install cran packages because it helps me work more efficiently when there are missing system libraries, older versions of system libraries, or missing R package dependencies. This is especially true with geospatial libraries such as GDAL/OGR. I use both rstudio and rstudio server on different Ubuntu machines</div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>> sudo su - -c "R -e \"install.packages('acs', repos = '<a href="http://cran.rstudio.com/'">http://cran.rstudio.com/'</a>)\""</div></blockquote><div><div><br></div>-- <br><div class="gmail_signature">Stoney Vintson 小山<div><div><a href="http://www.stoneyphoto.com" target="_blank">http://www.stoneyphoto.com</a><br><div><a href="mailto:stoneyv@gmail.com" target="_blank">stoneyv@gmail.com</a></div><div>503.830.8023 mobile</div></div></div></div>
</div></div>