bwringe / hybriddetective

13 stars 7 forks source link

nh_PreCheckR and nh_multiplot: Permission Denied #3

Open IolandaRocha opened 6 years ago

IolandaRocha commented 6 years ago

Hi all!

I'm following the basic workflow suggested by the authors. I already did Data Preparation and run parallelnewhybrids package.

I want now to check for convergence, but I got an error both on nh_PreCheckR and nh_multiplot functions:

nh_preCheckR(PreDir = "./NH.Results/", propCutOff = 0.5, PofZCutOff = 0.1) nh_multiplotR("./NH_Results/")

r in file(file, "rt") : cannot open the connection In addition: Warning message: In file(file, "rt") : cannot open file './NH.Results/GPD_for_GET_TOP_LOC_S1R1_NH/': Permission denied

I already manually changed permissions of the folders, changed names, tried different directories, but anything is working. Anyone had the same problems? Any ideas on how to solve?

Thank you very much! Iolanda

rystanley commented 6 years ago

If you are using Windows could be because R doesn't have administrative privileges. Some folders (i.e., C:/) Windows will default to requiring admin privs to write to or delete from. You could try running base R as administrator (right clicking and "Run as administrator') then run back through your code. If your analysis is based in a root directory you might try to move it to a more innocuous location (e.g., My Documents in Windows) and see if you have the same permission errors.

IolandaRocha commented 6 years ago

I'm indeed using Windows. But, I already tried that too, i.e. to run as administrator and to move in different locations. I get always the same permission errors.

rystanley commented 6 years ago

Hmm.

Do you have the newest version of NewHyrbrids installed (https://github.com/eriqande/newhybrids) we have seen some issues with the older version creating problems in the Windows environment.

Oddly, virus scans can cause some issues with the way ParallelNewHybrids works and could (not really sure) cause permission issues. Though running as administrator should circumvent that problem it might be worth seeing if you virus scan is interrupting the process.

IolandaRocha commented 6 years ago

In fact I was not using the newest version. Thank you for that tip!

I decided to use, and now I get a different error (ufff!):

in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, : line 61 did not have 8 elements

Any thoughts? I'm assuming is a problem with some file that parallelnewhybrids is generating..but I do not know where to start looking.

Thank you in advance! ;)