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

How to handle "car.ahp" file? #2

Closed
jjangkr opened this issue Dec 24, 2015 · 1 comment
Closed

How to handle "car.ahp" file? #2

jjangkr opened this issue Dec 24, 2015 · 1 comment

Comments

@jjangkr
Copy link

jjangkr commented Dec 24, 2015

I edited little bit on "car.ahp" file to test and rename it as "car2.ahp".
Then I tried to load it.

The error message for this is as below;

library(ahp)
ahpFile2 <- system.file("extdata", "car2.ahp", package="ahp")
carAhp2 <- LoadFile(ahpFile2)
Warning message:
In file(con, "r") :
file("") only supports open = "w+" and open = "w+b": using the former

How do I handle it?
Do I have to make "example.ahp" by using "yaml" type file?
Then how can I edit and save "yaml" file.
Text editor is not working.

@gluc
Copy link
Owner

gluc commented Dec 27, 2015

I cannot reproduce that error. But in any case, I suggest not messing around with your libPaths. So, what I would do is:

  1. copy the file car.ahp to a folder where you have adequate permissions, e.g. your home directory (on linux) or My Documents on Windows
  2. edit the file in a text editor (e.g. nano, or Notepad++)
  3. use LoadFile directly on the copied file, e.g. LoadFile("home/my_ahp_tests/car2.ahp")

@gluc gluc closed this as completed Jan 6, 2016
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