Package 'personr'

Title: Test Your Personality
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>.
Authors: Renfei Mao
Maintainer: Renfei Mao <[email protected]>
License: GPL-2
Version: 1.0.1
Built: 2024-11-02 03:12:03 UTC
Source: https://github.com/flujoo/personr

Help Index


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)
}