gluc / ahp

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

Actually loading file from a working directory #16

Closed kaisrab closed 6 years ago

kaisrab commented 7 years ago

What is the file format of the loaded file? I assume .ahp but I am unable to load this file. Please help!

gluc commented 7 years ago

Not sure how I can help!? Please do at least the following:

  1. attach the file you are trying loading
  2. describe where you stored the file
  3. what is the code you used to load the file?
  4. any other relevant information (e.g. OS, R version, ahp package version, etc.)

Side note: in order to try out if the syntax of your ahp file is correct, you can test your file here: https://ipub.com/dev-corner/apps/ahp/

kaisrab commented 7 years ago

Hello Thanks for the quick reply.

Here is the file I am trying to run. In R it is currently saying the follow error:

glucahp <- Load(ahpFile) Error in value[3L] : Could not load ahp model. File must be a valid YAML file. Exception caught when parsing YAML file: Error in yaml::yaml.load(ahpString): Scanner error: while scanning for the next token at line 48, column 1found character that cannot start any token at line 48, column 1

Line 48 is where I start to list my pairwise comparisons. I now have the file stores in the packages ahp folder where the other examples in your package are stored. It was previously in my working directory.

On the AHP web example I also get the following error: attempt to apply non-function

I have attached a screen shot of the errors and my model. Please let me know what I am doing wrong. I am operating on OS and I use the load function (Load) in the ahp package. Thanks your for your help.

On Thu, Aug 24, 2017 at 11:50 PM, Christoph Glur notifications@github.com wrote:

Not sure how I can help!? Please do at least the following:

  1. attach the file you are trying loading
  2. describe where you stored the file
  3. what is the code you used to load the file?
  4. any other relevant information (e.g. OS, R version, ahp package version, etc.)

Side note: in order to try out if the syntax of your ahp file is correct, you can test your file here: https://ipub.com/dev-corner/apps/ahp/

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gluc/ahp/issues/16#issuecomment-324817133, or mute the thread https://github.com/notifications/unsubscribe-auth/AH93BDuxhsJE8oU9FnPNG9ppixUxJupiks5sbkSUgaJpZM4PB_7K .

kaisrab commented 7 years ago

So I have it working partially. There were a few bugs with the open spaces and I used the checker. I am about 70% finished adding all of my alternatives. Thanks for the pointer to the online checker.