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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: readTSON
> ### Title: Deserialize a connection
> ### Aliases: readTSON
> 
> ### ** Examples
> 
> ## Example
> 
> library(rtson)
> 
> list = list(integer=42L,
+             double=42,
+             bool=TRUE,
+             uint8=tson.uint8.vec(c(42,0)),
+             uint16=tson.uint16.vec(c(42,0)),
+             uint32=tson.uint32.vec(c(42,0)),
+             int8=tson.int8.vec(c(42,0)),
+             int16=tson.int16.vec(c(42,0)),
+             int32=as.integer(c(42,0)),
+             float32=tson.float32.vec(c(0.0, 42.0)),
+             float64=c(42.0,42.0),
+             map=list(x=42, y=42, label="42"),
+             list=list("42",42)
+ )
> 
> con = rawConnection(raw(0), "r+")
> writeTSON(list, con)
<Serializer>
  Public:
    addBool: function (object) 
    addDouble: function (object) 
    addDoubleList: function (object) 
    addFloat32List: function (object) 
    addFloat64List: function (object) 
    addInt16List: function (object) 
    addInt32List: function (object) 
    addInt8List: function (object) 
    addInteger: function (object) 
    addIntegerList: function (object) 
    addLength: function (len) 
    addList: function (object) 
    addListOrMap: function (object) 
    addMap: function (object) 
    addNull: function () 
    addObject: function (object) 
    addRootObject: function (object) 
    addString: function (object) 
    addStringList: function (object) 
    addType: function (type) 
    addUInt16List: function (object) 
    addUInt32List: function (object) 
    addUInt8List: function (object) 
    clone: function (deep = FALSE) 
    con: 3
    initialize: function (object, con) 
> bytes = rawConnectionValue(con)
> close(con)
> con = rawConnection(bytes, "r")
> object = readTSON(con)
> 
> 
> 
> base::assign(".dptime", (proc.time() - get(".ptime", pos = "CheckExEnv")), pos = "CheckExEnv")
> base::cat("readTSON", base::get(".format_ptime", pos = 'CheckExEnv')(get(".dptime", pos = "CheckExEnv")), "\n", file=base::get(".ExTimings", pos = 'CheckExEnv'), append=TRUE, sep="\t")
> cleanEx()
Error: connections left open:
	bytes (rawConnection)
Execution halted