Running examples in ‘tcpl-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: Method functions
> ### Title: Functions for managing processing methods
> ### Aliases: 'Method functions' tcplMthdAssign tcplMthdClear tcplMthdList
> ###   tcplMthdLoad
> 
> ### ** Examples
> 
> ## Store the current config settings, so they can be reloaded at the end 
> ## of the examples
> conf_store <- tcplConfList()
> tcplConfDefault()
> 
> ## tcplListMthd allows the user to display the available methods for 
> ## a given level and data type
> head(tcplMthdList(lvl = 2, type = "mc"))
   mc2_mthd_id mc2_mthd                                           desc
1:           1     none                        apply no level 2 method
2:           2     log2                              log2 all raw data
3:           3    rmneg remove negative values prior to logging values
4:           4   rmzero        remove 0 values prior to logging values
5:           5   mult25                          multiply values by 25
6:           7  mult100                         multiply values by 100
> 
> ## tcplLoadMthd shows which methods are assigned for the given ID, level,
> ## and data type. Here we will show how to register, load, and clear methods
> ## using an acid not in the example database. Note: There is no check for
> ## whether an ID exists before assigning/clearing methods. 
> tcplMthdLoad(lvl = 2, id = 55, type = "mc")
Warning in tcplMthdLoad(lvl = 2, id = 55, type = "mc") :
  The given id(s) do not have mc2 methods.
Empty data.table (0 rows) of 4 cols: acid,mthd,mthd_id,ordr
> 
> ## ACID 55 does not have any methods. Assign methods from the list above. 
> tcplMthdAssign(lvl = 2, 
+                id = 55, 
+                mthd_id = c(3, 4, 2), 
+                ordr = 1:3, 
+                type = "mc")
Warning in `[.data.table`(dat, , `:=`("exec_ordr", ordr[match(get("mthd"),  :
  with=FALSE ignored, it isn't needed when using :=. See ?':=' for examples.
Warning in `[.data.table`(dat, , `:=`("modified_by", mb), with = FALSE) :
  with=FALSE ignored, it isn't needed when using :=. See ?':=' for examples.
Error in result_create(conn@ptr, statement) : 
  attempt to write a readonly database
Calls: tcplMthdAssign ... new -> initialize -> initialize -> result_create -> .Call
Execution halted