Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot load AHP file #18

Open
hugotorres22 opened this issue Mar 1, 2018 · 1 comment
Open

Cannot load AHP file #18

hugotorres22 opened this issue Mar 1, 2018 · 1 comment

Comments

@hugotorres22
Copy link

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
Copy link
Owner

gluc commented Jun 24, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants