Hi,
I am trying to install the R package "iopsych", but get the following error. This is a part of a macro we created. It would be great if
there is a direct solution to the problem.
Thanks everyone
R (1) R version 3.5.3 (2019-03-11) - x86_64
R (1) Loading required package: sysfonts
R (1) Loading required package: showtextdb
R (1) rgeos version: 0.4-2, (SVN revision 581)
R (1) GEOS runtime version: 3.6.1-CAPI-1.10.1
R (1) Linking to sp version: 1.3-1
R (1) Polygon checking: TRUE
R (1) Attaching package: 'AlteryxPredictive'
R (1) The following object is masked from 'package:AlteryxRDataX':
R (1) XMSG
R (1) Installing package into 'C:/Program Files/Alteryx/R-3.5.3/library'
R (1) (as 'lib' is unspecified)
R (1) Warning in install.packages(package.name) :
R (1) 'lib = "C:/Program Files/Alteryx/R-3.5.3/library"' is not writable
R (1) Error in install.packages(package.name) : unable to install packages
R (1) Calls: cond.install -> install.packages
R (1) Execution halted
R (1) The R.exe exit code (1) indicated an error.
I believe you need to launch Alteryx as an administrator (right click > run as administrator) and then your code should execute correctly.
There’s also a slightly different approach shown in this blog:
Ben
for anyone running into this when attempting to use runxml, i'm going to type that here so they come straight to this when they search!
Great work as always @BenMoss !