irwpkg
makes it easy to access and work with tables from the Item Response Warehouse (IRW), an open repository of harmonized item response data.
Visit the irwpkg package website for more information on getting started and a complete list of available functions.
Installation
# Install the development version of irwpkg from GitHub
devtools::install_github("hansorlee/irwpkg")
IMPORTANT: Redivis Authentication
The IRW tables are hosted on Redivis, a data management platform. To access these datasets, you’ll need to:
Have a Redivis account (create one at https://redivis.com/?createAccount if you don’t have one).
-
Authenticate using the Redivis R Client:
When you first use a function in
irwpkg
that connects to Redivis (e.g.irw_info()
), a browser window will open, prompting you to sign in to your Redivis account.After signing in, click Allow to grant access for the Redivis R Client.
Once authentication is successful, close the browser window. You will see the message “Authentication was successful” in the R console.
Note: You only need to authenticate once per session. For detailed instructions, refer to the Redivis R Client documentation.
Usage
After installation, load the irwpkg
in your R session:
Example
# Get information about the IRW
irw_info()
# View list of available tables in IRW
irw_list_tables()
# Filter tables containing the variable `rt`
irw_filter(var = "rt")
# fetch an IRW table
x = irw_fetch("4thgrade_math_sirt")
Feedback and Contributions
If you encounter issues or have suggestions for improving irwpkg
, please submit them on the GitHub Issues page. Contributions are welcome!