ahp icon indicating copy to clipboard operation
ahp copied to clipboard

Cannot load AHP file

Open hugotorres22 opened this issue 8 years ago • 1 comments

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?

hugotorres22 avatar Mar 01 '18 15:03 hugotorres22

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.

gluc avatar Jun 24 '18 04:06 gluc