This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
You should remove # in front of install.packages. That will install the package. Once you install it, you can either remove that line or put # back, so you don't install it again each time you run the code.
Thanks, Hwas, but now I'm receiving the below errors. Any thoughts?
R (9) R version 3.5.3 (2019-03-11) - x86_64 R (9) Loading required package: sysfonts R (9) Loading required package: showtextdb R (9) rgeos version: 0.4-2, (SVN revision 581) R (9) GEOS runtime version: 3.6.1-CAPI-1.10.1 R (9) Linking to sp version: 1.3-1 R (9) Polygon checking: TRUE R (9) Attaching package: 'AlteryxPredictive' R (9) The following object is masked from 'package:AlteryxRDataX': R (9) XMSG R (9) Installing package into 'C:/Users/talbjam/AppData/Local/Alteryx/R-3.5.3/library' R (9) (as 'lib' is unspecified) R (9) Error in contrib.url(repos, "source") : R (9) trying to use CRAN without setting a mirror R (9) Calls: install.packages -> contrib.url R (9) Execution halted R (9) The R.exe exit code (1) indicated an error.