You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I suggest changing the order, first check if the "file" exists and if not treat it as possible json.
Yeah that should work right? Another solution could be to introduce different arguments for each type so that people can call the function like analysisOptions(path = "C:\path\to\file.jasp"), analysisOptions(json = "[1,2,3]"), analysisOptions(analysis="Descriptives") or something like that. Not sure whether it's worth the hassle though.
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
json
as 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(...)
The text was updated successfully, but these errors were encountered: