{"id":14068140,"url":"https://github.com/datacamp/testwhat","last_synced_at":"2025-07-19T02:02:26.782Z","repository":{"id":25000274,"uuid":"28419237","full_name":"datacamp/testwhat","owner":"datacamp","description":"Write Submission Correctness Tests for R exercises","archived":false,"fork":false,"pushed_at":"2022-06-22T07:55:31.000Z","size":4405,"stargazers_count":34,"open_issues_count":44,"forks_count":26,"subscribers_count":33,"default_branch":"master","last_synced_at":"2025-07-08T14:07:49.431Z","etag":null,"topics":["fs","le"],"latest_commit_sha":null,"homepage":"https://datacamp.github.io/testwhat","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/datacamp.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-23T20:56:07.000Z","updated_at":"2025-06-26T10:21:11.000Z","dependencies_parsed_at":"2022-09-14T18:20:47.672Z","dependency_job_id":null,"html_url":"https://github.com/datacamp/testwhat","commit_stats":null,"previous_names":[],"tags_count":88,"template":false,"template_full_name":null,"purl":"pkg:github/datacamp/testwhat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datacamp%2Ftestwhat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datacamp%2Ftestwhat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datacamp%2Ftestwhat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datacamp%2Ftestwhat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datacamp","download_url":"https://codeload.github.com/datacamp/testwhat/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datacamp%2Ftestwhat/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265871853,"owners_count":23842088,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fs","le"],"created_at":"2024-08-13T07:05:58.493Z","updated_at":"2025-07-19T02:02:26.712Z","avatar_url":"https://github.com/datacamp.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"\u003e :warning: **This repo had outdated tokens in its travisci config**\n\u003e To make new releases for this project it needs to be moved to circleci\n\n# testwhat\n\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fdatacamp%2Ftestwhat.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fdatacamp%2Ftestwhat?ref=badge_shield)\n\nVerify R code submissions and auto-generate meaningful feedback messages.\nOriginally developed for R exercises on DataCamp for so-called Submission Correctness Tests, but can also be used independently.\n\n- If you are new to teaching on DataCamp, check out https://instructor-support.datacamp.com.\n- If you want to learn what SCTs are and how they work, visit [this article](https://instructor-support.datacamp.com/courses/course-development/submission-correctness-tests) specifically.\n- For a complete overview of all functionality inside `testwhat` and articles about what to use when, consult https://datacamp.github.io/testwhat.\n\nFor details, questions and suggestions, [contact us](mailto:content-engineering@datacamp.com).\n\n\n## Installation\n\n```R\nlibrary(\"remotes\")\ninstall_github(\"datacamp/testwhat\")\n```\n\n## Demo\n\nExperimenting locally:\n\n```R\nlibrary(testwhat)\nsetup_state(sol_code = \"x \u003c- 5\",\n            stu_code = \"x \u003c- 4\")\n\nex() %\u003e% check_object(\"x\")\n# No error: x is defined in both student and solution code\n\nex() %\u003e% check_object(\"x\") %\u003e% check_equal()\n# Error: The contents of the variable `x` aren't correct.\n\n# Debugging state\ns \u003c- ex() %\u003e% check_object()\ns                     # only prints out state class\nstr(s)                # full overview of state\ns$get(\"student_code\") # access student code in state\n```\n\nTo include an SCT in a DataCamp course, visit https://instructor-support.datacamp.com.\n\n## Tests\n\n`testwhat` currently depends on the proprietary `RBackend` and `RCompletion` packages to run tests. Tests run automatically on every branch that is updated through travis.\n\n```R\ndevtools::test()\n```\n\n## Documentation\n\nWhenever a push is done to the `master` branch, this repo will automatically build a `pkgdown` website (containing reference documentation and vignettes), push it to the `gh-pages` branch, which in turn is served by GitHub at https://datacamp.github.io/testwhat.\n\n\n\n## License\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fdatacamp%2Ftestwhat.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fdatacamp%2Ftestwhat?ref=badge_large)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatacamp%2Ftestwhat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatacamp%2Ftestwhat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatacamp%2Ftestwhat/lists"}