0
votes

I am trying to install CHAID package into R using the command below.

install.packages("CHAID", repos="http://R-Forge.R-project.org")

I keep getting the response

Error in dev.off() : could not find function "dev.off" Execution halted In R CMD INSTALL Warning in install.packages : installation of package ‘CHAID’ had non-zero exit status

The OS is Windows10. R is running the latest 3.5.1

I tried to google the error and find a fix but without success.

1
Have you installed R in C drive? if yes make sure you have administrator privileges .it might be the case - Hunaidkhan

1 Answers

2
votes

Make sure you have the partykit package installed first before installing CHAID. That worked for me.