Skip to content

[Bug]: JSON Format Error When Using analysisOptions() with .jasp File in R Console #3005

@JIWON0520

Description

@JIWON0520

JASP Version

0.19.1

Commit ID

No response

JASP Module

ANOVA

What analysis are you seeing the problem on?

AnovaBayesian

What OS are you seeing the problem on?

Windows 10

Bug Description

I followed Procedure 2 as outlined on the jaspTools GitHub page, which suggests saving the options from JASP as a .jasp file and then using analysisOptions() to read the file.
When attempting to use the analysisOptions() function from jaspTools to load a .jasp file created in JASP, a JSON format error occurs with the following message:

Your json is invalid, please copy the entire message
including the outer braces { } that was sent to R in the Qt terminal.
Remember to use single quotes around the message.

Expected Behaviour

1.The analysisOptions() function should successfully load the options from the .jasp file without any JSON format errors.
2. The runAnalysis() function should produce the same results in the R console as seen in the JASP app.

Steps to Reproduce

  1. Create and save a .jasp file in JASP with specific analysis settings.
  2. Use the following code in R to load the .jasp file:
    options <- analysisOptions("C:/Users/JiWonYoun/Desktop/test.jasp")
  3. Observe the JSON format error.
Your json is invalid, please copy the entire message
including the outer braces { } that was sent to R in the Qt terminal.
Remember to use single quotes around the message.

Log (if any)

No response

More Debug Information

This is my jasp file.
test.zip

Final Checklist

  • I have included a screenshot showcasing the issue, if possible.
  • I have included a JASP file (zipped) or data file that causes the crash/bug, if applicable.
  • I have accurately described the bug, and steps to reproduce it.

Metadata

Metadata

Labels

Bug: MediumBugs that don't influence the basic function of the app, but it's better to fix them at some point.Component: jaspToolsRelated to running analysis through jaspToolsDeveloperWaiting for requesterIf waiting for a long time it is reasonable to close an issue

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions