gluc / ahp

Analytical Hierarchy Process (AHP) with R
98 stars 41 forks source link

Cannot load AHP file #18

Open hugotorres22 opened 6 years ago

hugotorres22 commented 6 years ago

Hello,

In the summer of 2016, while doing my thesis I used the AHP package to perform part of it. Now I'm in a similar project and I wanted to use it again, since there aren't much more alternatives. However, when I try to load the file, I get the following error:

Error in readChar(ahpFile, file.info(ahpFile)$size) : invalid 'nchars' argument In addition: Warning message: In file(con, "rb") : file("") only supports open = "w+" and open = "w+b": using the former

I then checked file.info and in fact it loads the file but gets NA in every field of it. I have already checked the syntax on your website and the syntax is correct. Any idea of what might be causing this?

gluc commented 6 years ago

I hope you're not only using the package because there are no alternatives ;-) Anyway, as the error message says, there is a problem reading in your file that is probably not ahp-related. If you create a reproducible example, preferably as a gist, I can still look into it.