Running examples in 'RecordLinkage-Ex.R' failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: compare
> ### Title: Compare Records
> ### Aliases: compare.dedup compare.linkage
> ### Keywords: classif
> 
> ### ** Examples
> 
> data(RLdata500)
> data(RLdata10000)
> 
> # deduplication without blocking, use string comparator on names
> ## Not run: rpairs=compare.dedup(RLdata500,strcmp=1:4)
> # linkage with blocking on first name and year of birth, use phonetic
> # code on first components of first and last name
> rpairs=compare.linkage(RLdata500,RLdata10000,blockfld=c(1,7),phonetic=c(1,3))
 ----------- FAILURE REPORT -------------- 
 --- failure: the condition has length > 1 ---
 --- srcref --- 
: 
 --- package (from environment) --- 
RecordLinkage
 --- call from context --- 
pho_h(dataset1[, phonetic])
 --- call from argument --- 
if (class(str) == "factor") str = as.character(str)
 --- R stacktrace ---
where 1: pho_h(dataset1[, phonetic])
where 2: compare.linkage(RLdata500, RLdata10000, blockfld = c(1, 7), phonetic = c(1, 
    3))

 --- value of length: 2 type: logical ---
[1] FALSE FALSE
 --- function from context --- 
function (str) 
{
    if (typeof(str) != "character" && class(str) != "factor") 
        stop(sprintf("Illegal data type: %s", typeof(str)))
    if (class(str) == "factor") 
        str = as.character(str)
    out <- .C(".pho_h_sym", str, ans = character(length(str)), 
        length(str), PACKAGE = "RecordLinkage")
    if (any(is.na(str))) 
        out$ans[is.na(str)] = NA
    dim(out$ans) = dim(str)
    dimnames(out$ans) = dimnames(str)
    return(out$ans)
}
<bytecode: 0x10fc2208>
<environment: namespace:RecordLinkage>
 --- function search by body ---
Function pho_h in namespace RecordLinkage has this body.
 ----------- END OF FAILURE REPORT -------------- 
Error in if (class(str) == "factor") str = as.character(str) : 
  the condition has length > 1
Calls: compare.linkage -> pho_h
Execution halted
Warning: call dbDisconnect() when finished working with a connection