Question

I've been trying for half an hour following this simple guide http://www.perfdynamics.com/Tools/PDQcode.html#tth_sEc1.1.1

It simply throws this error:

> install.packages("C:\\Users\\Neven\\Downloads\\pdq_6.0-1.tar.gz",repos=NULL,type="source")

Warning: invalid package 'C:/Users/Neven/Downloads/pdq_6.0-1.tar.gz'
Error: ERROR: no packages specified
Warning messages:
1: running command '"C:/PROGRA~1/R/R-30~1.2/bin/x64/R" CMD INSTALL -l "C:\ProgramFiles\R\R-3.0.2\library" "C:/Users/Neven/Downloads/pdq_6.0-1.tar.gz"' had status 1 
2: In install.packages("C:\\Users\\Neven\\Downloads\\pdq_6.0-1.tar.gz",  :
installation of package ‘C:/Users/Neven/Downloads/pdq_6.0-1.tar.gz’ had non-zero exit status

I've been searching for an answer on the website, trying different things but nothing did it.

Was it helpful?

Solution

I was copy/pasting the command from their documentation and it seems their documentation is out of date.

The command is:

install.packages("C:\\Users\\Neven\\Downloads\\pdq_6.0-1.tar.gz",repos=NULL,type="source")

Since there's a new version of R (6.1-1), it should be:

install.packages("C:\\Users\\Neven\\Downloads\\pdq_6.1-1.tar.gz",repos=NULL,type="source")

Really stupid mistake, but that's what solved the problem.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top