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

Write out fail for dispersion.csv on windows #22

Closed
bhickson opened this issue Jul 12, 2018 · 2 comments
Closed

Write out fail for dispersion.csv on windows #22

bhickson opened this issue Jul 12, 2018 · 2 comments

Comments

@bhickson
Copy link

When attempting to create dispersion model as per sample instructions from README, write out fails with error...

Error in file(file, ifelse(append, "a", "w")) : cannot open the connection In addition: Warning message: In file(file, ifelse(append, "a", "w")) : cannot open file '"C:/Users/myname/Documents/SplitR/disp--2018-07-12--15-41-50/dispersion.csv"': Invalid argument

Replacing line 815->817 in hysplit_dispersion.R with

write.table(disp_df, file = paste0(getwd(), "/", folder_name, "/dispersion.csv"), sep = ",", row.names = FALSE)

solved the issue. Just remove the escape characters and quotes in beginning and end of paste0.

Verified on two Windows 10 machines.

@rich-iannone
Copy link
Owner

Thanks for filing this issue. I will address this by using file.path(). I intend to refactor the hysplit_dispersion() function.

@rich-iannone
Copy link
Owner

This shouldn’t be a problem anymore given the recent changes to hysplit_dispersion().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants