Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add warning to CreateHIT.R #22

Merged
merged 1 commit into from
Mar 14, 2024

Conversation

GregePorter
Copy link
Contributor

@GregePorter GregePorter commented Mar 12, 2024

Should the do.call on line 299 fail, CreateHIT will now send a warning message with the full response object. The response object contains additional error information received from mTurk.

When running through some test cases for some code utilizing pyMturkR, I tried to create a HIT with invalid parameters. The error I received was:
$ operator is invalid for atomic vectors

With this additional warning, I see the following in the console:
error

I ran R CMD check --as-cran on the package and it seems to build (aside from a latex error but I think I've seen that before on other successful cran packages I've checked).

Should the do.call on line 299 fail, CreateHIT will now send a warning message with the full response object. The response object contains additional error information received from mTurk
@vineetbansal
Copy link
Collaborator

Thanks! I'll merge this, and fix the problem with the CI (unrelated to this change) in the next couple of days.

@vineetbansal vineetbansal merged commit ce4fd38 into cloudyr:master Mar 14, 2024
2 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants