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

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

if (FALSE) { has_codebook(110000) }