While helping someone out I ran into this code:
|
if (grepl("[{}\":]", source)) { # json string |
Which works fine on unix to discriminate filenames from json as is evidenced by:
|
} 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(...)
While helping someone out I ran into this code:
jaspTools/R/options.R
Line 61 in 9895359
Which works fine on unix to discriminate filenames from
jsonas is evidenced by:jaspTools/R/options.R
Line 68 in 9895359
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(...)