R package with generic analysis tools for VRThreat data generated with the VRthreat Unity package. This can be used to analyse data generated with publicly available releases of VRthreat games, collected on OSF. Brought to you by Bachlab at Universität Bonn and University College London
Documentation: https://bachlab.github.io/vrthreat/index.html
install.packages("devtools")
devtools::install_github("bachlab/vrthreat")
NOTE: the vrthreat package is not currently available on CRAN as it heavily uses tidyverse-style non-standard evaluation which is not accepted on CRAN. This may change in the future.
Scripts containing the functions for this package are located in the R
directory. All functions here are added and available to use when you install the package.
Unit tests can be performed using the devtools
and testthat
packages if you clone the repository locally.
Several shortcut functions for development are in the shortcuts.R
script. You can use these to build documentation, the documentation website, run tests, etc.
General information on package development: https://r-pkgs.org/man.html
Quick tips:
R
folder.dplyr::filter(...)
). Dependencies should be added to the imports in the DESCRIPTION file.extract_
functions)extract_...
(avoiding the word summarise
which in the tidyverse stands for summarising a data frame across rows into a new data frame)