Skip to contents

Write rock codes section

Usage

codebook_rock_codes(codebook, error_call = current_env())

Arguments

codebook

codebook data frame

error_call

The execution environment of a currently running function, e.g. caller_env(). The function will be mentioned in error messages as the source of the error. See the call argument of abort() for more information.

Value

the text of the codes section of a .rock file

Examples

if (FALSE) { # \dontrun{
  codebook_rock_codes(read_qdpx(example_qdpx())$CodeBook)
} # }