Skip to content

Enable extract_data_apsimx Function to Support File Paths with Spaces #186

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Chloe0317
Copy link

This pull request modifies the extract_data_apsimx function to handle file and directory paths that contain spaces.

To enable extracting data from files with paths that have spaces
@Chloe0317
Copy link
Author

@femiguez Hi Fernando,

I created this pull request which will allow spaces in the file links for your consideration as sometimes the paths are likely to contain white spaces, e.g., our uni's OneDrive system has spaces in the root folder name and in links to channel files that we don't have authorities to change.

Thanks.

@femiguez
Copy link
Owner

@Chloe0317 Originally in the package I did not allow path spaces because APSIM couldn't handle them. At some point this was fixed, but only for APSIM Next Gen. I allow spaces in paths for files by setting the 'apsimx_options(allow.path.spaces = TRUE)'. It is FALSE by default and I might set it to TRUE in the future. However, I want users to be aware of this, as it can cause problems. Please try the global option 'apsimx_options(allow.path.spaces = TRUE)' and let me know if it fixes your problem. Note that there cannot be spaces in the path to the APSIM program with the exception of 'Program Files' in Windows.

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

Successfully merging this pull request may close these issues.

2 participants