report: Generate a Personality Test Report

Description Usage Arguments Details Value See Also Examples

View source: R/report.R

Description

Generate a personality test report without launching the test.

Usage

1
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

1
2
3
4
5
6
7
8
if (interactive()) {
  # a numeric vector representing your responses to the test
  rs <- rep(1, 50)

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

personr documentation built on July 2, 2020, 2:12 a.m.