has_codebook: Check if form has codebook

View source: R/nettskjema-codebook.R

has_codebookR Documentation

Check if form has codebook

Description

Codebook is by default turned off in Nettskjema, but best practices in handling data is to have it on. This function checks if the codebook of a form has been activated or not

Usage

has_codebook(form_id, token_name = "NETTSKJEMA_API_TOKEN")

Arguments

form_id

integer. Number of the form to retrieve

token_name

character. Name to give the token, defaults to 'NETTSKJEMA_API_TOKEN'

Value

logical is codebook is turned on

Examples

## Not run: 
has_codebook(110000)

## End(Not run)

LCBC-UiO/nettskjemar documentation built on Aug. 24, 2023, 5:44 p.m.