-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
While helping someone out I ran into this code:
Line 61 in 9895359
| if (grepl("[{}\":]", source)) { # json string |
Which works fine on unix to discriminate filenames from json as is evidenced by:
Line 68 in 9895359
| } else if (file.exists(source)) { # .jasp file |
But on Windows this leads into inevitable problems with things like C:\bla\bla.
So I suggest changing the order, first check if the "file" exists and if not treat it as possible json.
What do you think @vandenman @Kucharssim
My workaround for this problem is: jaspTools:::analysisOptionsFromJASPfile(...)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels