Skip to contents

Write generic object to files.

Usage

write(object, file, ...)

# S4 method for class 'parameters,character'
write(object, file, ...)

# S4 method for class 'code_records,character'
write(object, file, ...)

# S4 method for class 'campsis_model,character'
write(object, file, ...)

# S4 method for class 'json_element,character'
write(object, file, digits = 12, ...)

Arguments

object

generic object

file

path of the output file or directory

...

extra arguments

digits

significant digits in JSON file, default is 12

Value

logical value, TRUE for success, FALSE for failure