- using R version 2.14.0 RC (2011-10-24 r57417)
- using platform: i386-apple-darwin9.8.0 (32-bit)
- using session charset: ASCII
- checking for file 'relations/DESCRIPTION' ... OK
- this is package 'relations' version '0.6'
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... NOTE
Packages suggested but not available for checking:
'Rgraphviz' 'clue'
Packages which this enhances but not available for checking:
'seriation' 'Rcplex'
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for executable files ... OK
- checking whether package 'relations' can be installed ... OK
- checking installed package size ... OK
- checking package directory ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking R files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... OK
- checking whether the package can be loaded with stated dependencies ... OK
- checking whether the package can be unloaded cleanly ... OK
- checking whether the namespace can be loaded with stated dependencies ... OK
- checking whether the namespace can be unloaded cleanly ... OK
- checking for unstated dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... OK
- checking Rd files ... OK
- checking Rd metadata ... OK
- checking Rd cross-references ... NOTE
Package(s) unavailable to check Rd xrefs: 'clue'
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking contents of 'data' directory ... OK
- checking data for non-ASCII characters ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking sizes of PDF files under 'inst/doc' ... OK
- checking examples ... WARNING
checking a package with encoding 'UTF-8' in an ASCII locale
ERROR
Running examples in 'relations-Ex.R' failed
The error most likely occurred in:
> ### Name: reduction
> ### Title: Transitive and Reflexive Reduction
> ### Aliases: transitive_reduction reflexive_reduction reduction.relation
> ### Keywords: math
>
> ### ** Examples
>
> R <- as.relation(1 : 5)
> relation_incidence(R)
Incidences:
1L 2L 3L 4L 5L
1L 1 1 1 1 1
2L 0 1 1 1 1
3L 0 0 1 1 1
4L 0 0 0 1 1
5L 0 0 0 0 1
>
> ## transitive closure/reduction
> RR <- transitive_reduction(R)
> relation_incidence(RR)
Incidences:
1L 2L 3L 4L 5L
1L 1 1 0 0 0
2L 0 1 1 0 0
3L 0 0 1 1 0
4L 0 0 0 1 1
5L 0 0 0 0 1
> R == transitive_closure(RR)
[1] TRUE
>
> ## same
> R == closure(reduction(R))
[1] TRUE
>
> ## reflexive closure/reduction
>
> RR <- reflexive_reduction(R)
> relation_incidence(RR)
Incidences:
1L 2L 3L 4L 5L
1L 0 1 1 1 1
2L 0 0 1 1 1
3L 0 0 0 1 1
4L 0 0 0 0 1
5L 0 0 0 0 0
> R == reflexive_closure(RR)
[1] TRUE
>
> ## same:
> R == closure(reduction(R, "reflexive"), "reflexive")
[1] TRUE
>
> ## transitive reduction of a cyclic relation:
> ## (example from La Poutre and van Leeuwen)
>
> G <- set(pair(1L, 2L), pair(2L, 1L), pair(1L, 3L), pair(3L, 1L),
+ pair(3L, 7L), pair(2L, 5L), pair(2L, 6L), pair(6L, 5L),
+ pair(5L, 7L), pair(4L, 6L), pair(5L, 4L), pair(4L, 7L))
> R <- endorelation(graph = G)
> plot(relation_ensemble(R, R), type = c("raw", "simplified"), main =
+ c("original graph", "transitive reduction"))
Loading required package: Rgraphviz
Warning in library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
there is no package called 'Rgraphviz'
Error in plot.relation_ensemble(relation_ensemble(R, R), type = c("raw", :
Plotting requires package 'Rgraphviz'.
Calls: plot -> plot.relation_ensemble
Execution halted
- elapsed time (check, wall clock): 0:33