ropensci / datapack

An R package to handle data packages
https://docs.ropensci.org/datapack
44 stars 9 forks source link

Error for CRAN package check #102

Closed gothub closed 4 years ago

gothub commented 6 years ago

The CRAN package check results for the released datapack 1.3.1 show an error for r-devel-windows-ix86+x86_64:

checking examples ... ERROR
Running examples in 'datapack-Ex.R' failed
The error most likely occurred in:

> ### Name: serializeSystemMetadata
> ### Title: Serialize a SystemMetadata object to an XML representation
> ### Aliases: serializeSystemMetadata
> ### serializeSystemMetadata,SystemMetadata-method
> 
> ### ** Examples
> 
> library(XML)
> doc <- xmlParseDoc(system.file("testfiles/sysmeta.xml", package="datapack"), asText=FALSE)
> sysmeta <- new("SystemMetadata")
> sysmeta <- parseSystemMetadata(sysmeta, xmlRoot(doc))
> sysmetaXML <- serializeSystemMetadata(sysmeta, version="v2")
> 
> 
> 
> cleanEx()

detaching 'package:XML'

Error: connections left open:
 NULL (textConnection)
Execution halted
gothub commented 4 years ago

I checked the package results on 10/11/2019 and the problem has been resolved, without changing datapack, so I will assume that it was a problem with CRAN platform.

The example shown in the error does not use a textConnection.