setup_performance_review: Setup survey infrastructure in Google Drive and Google Sheets

View source: R/performance_assessment_setup.R

setup_performance_reviewR Documentation

Setup survey infrastructure in Google Drive and Google Sheets

Description

This function takes in a name and will create a folder in Google Drive with a corresponding Google Sheet for all survey data to be written.

Usage

setup_performance_review(
  name,
  include_employee_setup_app,
  employee_data,
  encryption_key,
  password_length
)

Arguments

name

The name of the new performance assessment

include_employee_setup_app

Logical: TRUE and a Shiny app allowing employees to select their manager and peers will be created.

employee_data

A data frame with columns "full_name" and "email" for all employees included in the performance review.

encryption_key

A character string used to encrypt the employees' names into passwords. This should be kept secret. If NULL (default), the environmental variable RESPONSEMATCH_ENCRYPT_KEY is checked.

password_length

The length of the passwords created for each user. Defaults to six.

Value

A named list of Google Sheets IDs for customizing the Performance Review Shiny app c( 'employee_response_folder_id', 'employe_survey_metadata_id', 'employee_login_data_id', 'employe_survey_responses_id', 'employee_dependencies_id' ). This named list is used internally create_performance_review().

Examples


if (interactive()) {
setup_performance_review("testPA")
}


jdtrat/responsematch documentation built on Sept. 15, 2022, 6:19 a.m.