PecanProject / pecan

The Predictive Ecosystem Analyzer (PEcAn) is an integrated ecological bioinformatics toolbox.
www.pecanproject.org
Other
202 stars 234 forks source link

Suppress warnings in `modify_ed2in()` about directories on remote server #3020

Closed Aariq closed 2 years ago

Aariq commented 2 years ago

https://github.com/PecanProject/pecan/blob/f5194f84b26a85bbfcb279cc4665d7560205efc7/models/ed/R/modify_ed2in.R#L219

This line results in a warning that the directory on the HPC doesn't exist, even when it does. I think that was leading me to believe that run.write.configs() was trying to write to the HPC, but it's not.

I think this warning could (and should) be suppressed by changing to normalizePath(output_dir, mustwork = FALSE). Probably all the normalizePath() calls in this function should get mustwork = FALSE

Originally posted by @Aariq in https://github.com/PecanProject/pecan/issues/2992#issuecomment-1227771430