Skip to content

Windows is severely mistreated by jaspTools::analysisOptions #27

@JorisGoosen

Description

@JorisGoosen

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(...)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions