Type: Package
Title: Test Your Personality
Version: 1.0.0
Author: Renfei Mao
Maintainer: Renfei Mao <renfeimao@gmail.com>
Description: An R-package-version of an open online science-based personality test from https://openpsychometrics.org/tests/IPIP-BFFM/, providing a better-designed interface and a more detailed report. The core command launch_test() opens a personality test in your browser, and generates a report after you click "Submit". In this report, your results are compared with other people's, to show what these results mean. Other people's data is from https://openpsychometrics.org/_rawdata/BIG5.zip.
URL: https://github.com/flujoo/personr
License: GPL-2
Encoding: UTF-8
LazyData: true
Imports: ggplot2, rlang, rmarkdown, shiny, stats, utils, whisker
Suggests: testthat
Depends: R (≥ 2.10)
RoxygenNote: 7.1.0
NeedsCompilation: no
Packaged: 2020-06-18 05:39:19 UTC; flujoo
Repository: CRAN
Date/Publication: 2020-06-24 11:00:02 UTC

Launch a Personality Test

Description

Launch a personality test and get a report.

Usage

launch_test(path)

Arguments

path

A string to set where to store your test report.

Details

The test is called "Big Five Personality Test" and is from https://openpsychometrics.org/tests/IPIP-BFFM/.

After you finish and submit your responses, a report will generate in your path.

Value

No return value, a Shiny app is launched, and two files named "report.Rmd" and "report.html" generates in your path after you click the "Submit" button in the app.

See Also

report for generating report without calling launch_test.

Examples

if (interactive()) {
  launch_test(path = tempdir())
}


Generate a Personality Test Report

Description

Generate a personality test report without launching the test.

Usage

report(responses, path)

Arguments

responses

A numeric vector to represent your answers to the questions in the test.

path

A string to set where to store your test report.

Details

report will be automatically called after you call launch_test and submit your responses.

The report summaries your test results, and compares them to other people's to tell you what the results mean.

Value

No return value, two files named "report.Rmd" and "report.html" generates in your path.

See Also

launch_test to launch the personality test.

Examples


if (interactive()) {
  # a numeric vector representing your responses to the test
  rs <- rep(1, 50)

  # generate report
  path <- tempdir()
  report(rs, path)
}