Forums

Back

r4ss SS_output () error: can't find report file

YL
Yan Li, modified 4 Years ago.

r4ss SS_output () error: can't find report file

Youngling Posts: 3 Join Date: 5/2/17 Recent Posts

I am running SS3 V3.30.14 on Mac OS. The SS run was completed successfully, and the Report.sso file is generated. However, when I run the function SS_output() in r4ss package (version 1.36.1), R version is 3.4.0. I got error saying "can't find report file", but Report.sso is right there. See below for the error message. Any tips are extremely appreciated.

> library(r4ss)
> dd=SS_output('~/Desktop/Review_workshop_striped_bass_2019_NewBern_NC/AR_SS_model⁩/model_1',covar=T) #use covar=F if no var-cov matrix is produced;end parth is the folder where ss outputs
Some stats skipped because the .par file not found:
    
Error in SS_output("~/Desktop/Review_workshop_striped_bass_2019_NewBern_NC/AR_SS_model\u2069/model_1",  : 
  can't find report file: ~/Desktop/Review_workshop_striped_bass_2019_NewBern_NC/AR_SS_model⁩/model_1/Report.sso

KD
Kathryn Doering, modified 4 Years ago.

RE: r4ss SS_output () error: can't find report file

Youngling Posts: 57 Join Date: 2/19/19 Recent Posts

Hello there,

I normally get this error when I specified the path incorrectly (perhaps missing a component of the path, like a subdirectory). Could you check that the path in "can't find report file: ~/Desktop/Review_workshop_striped_bass_2019_NewBern_NC/AR_SS_model⁩/model_1/Report.sso" is correct? The path specified in SS_output should be to the folder containing the SS model output files.

Also, your error seems to have an additional directory in the path: u2069, and I am not sure where it came from give the path command you show and error message it produced?  Any ideas?

If everything seems fine, but it still won't work, another thing to test is if a path relative to your R working directory will work. For ex, if your R working directory is "~/Desktop/Review_workshop_striped_bass_2019_NewBern_NC/AR_SS_model⁩", you can try specifying the command as SS_output("model_1", covar =TRUE). Will relative path work? Maybe also try forming the path using the r base function file.path instead of forward slashes (although I don't think that should make a difference)?

Given you are using mac and r4ss is typically tested most throughly on windows, it is possible that the treatment of the path in r4ss has issues, so we can investigate that next if you still are having issues. 

Thanks,

Kathryn

 

 

 

IT
Ian Taylor, modified 4 Years ago.

RE: r4ss SS_output () error: can't find report file

Youngling Posts: 117 Join Date: 12/8/14 Recent Posts

The \u2069 is probably indicating an invisible unicode character https://www.fileformat.info/info/unicode/char/2069/index.htm

I don't know how it got into your text, but try deleting the directory name and re-typing it from scratch to see if that makes a difference.