- using R Under development (unstable) (2024-11-15 r87338)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-14 (GCC) 14.2.0
GNU Fortran (GCC) 14.2.0
- running under: Fedora Linux 36 (Workstation Edition)
- using session charset: UTF-8
- using option ‘--no-stop-on-test-error’
- checking for file ‘shipunov/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘shipunov’ version ‘1.17.1’
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘shipunov’ can be installed ... [12s/16s] OK
See the install log for details.
- checking package directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking code 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 loading without being on the library search path ... OK
- checking whether startup messages can be suppressed ... OK
- checking use of S3 registration ... OK
- checking 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 ... [24s/29s] OK
- checking Rd files ... NOTE
checkRd: (-1) MrBayes.Rd:24: Lost braces
24 | \item{contype}{A character string; the type of consensus tree calculated from the posterior distribution of trees}{either "halfcompat" (majority-rule consensus tree) or "allcombat" (strict consensus tree)}
| ^
- checking Rd metadata ... OK
- checking Rd line widths ... OK
- checking Rd cross-references ... OK
- 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 LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking examples ... [61s/82s] ERROR
Running examples in ‘shipunov-Ex.R’ failed
The error most likely occurred in:
> ### Name: keys
> ### Title: Diagnostic keys
> ### Aliases: keys
> ### Keywords: datasets
>
> ### ** Examples
>
> attach(keys)
>
> head(bracket1)
V1 V2 V3
1 1 It is an animal 2
2 1 It is a plant 3
3 2 Spiny Hedgehog
4 2 Not very spiny Swift
5 2 Not at all spiny Horse
6 3 Very woody Spruce
> head(bracket2)
V1 V2
1 1 Leaves pinnatifid
2 1 Leaves entire
3 2 Plants perennial, leaves dissected to numerous lanceolate lobes
4 2 Annual plants, leaves with narrow lobes
5 3 The compact inflorescence is surrounded by leaflike bracts
6 3 The sparse inflorescence without specialised bracts
V3
1 2
2 3
3 Polemonium L.
4 Gilia L.
5 Collomia Nutt.
6 Plox L.
> head(branched)
V1 V2
1 1 Leaves cauline.
2 2 Perennials, sometimes woody
3 2 Annuals.
4 3 Spikes glandular-hairy; all bracts similar
5 3 Spikes eglandular; proximal bracts strongly differing from distal bracts
6 1 Leaves basal.
V3
1
2 Plantago sempervirens
3
4 Plantago afra
5 Plantago arenaria
6
> head(serial)
V1 V2
1 1 6
2 2 5
3 3 4
4 4 3
5 5 2
6 6 1
V3
1 Leaves opposite. Stems with long internodes. Inflorescences nearly capitate. Capsula with 2 big seeds.
2 Annuals.
3 Bracts of lower flowers with long, narrowed appendages. Bracts of upper flowers nearly spathulate, with keel, which extend to the tip. Greyish, branching plants.
4 Bracts of lower flowers with straight appendages. Bracts of upper flowers egg-shaped, with keel, which not extend to the tip. Greenish plants, usually with rare branches.
5 Perennials with lignose stems; bracts of lower flowers are very broad, covered the most part of inflorescence base.
6 Leaves alternate, in the rosette. Inflorescences long or short cylindrical. Capsula with 12 or bigger number of seeds.
V4
1 <NA>
2 <NA>
3 Plantago arenaria
4 Plantago afra
5 Plantago sempervirens
6 <NA>
>
> ## convert keys with Biokey()
> sii <- Biokey(serial, from="serial", to="indented")
> sbb <- Biokey(serial, from="serial", to="bracket")
> bbr <- Biokey(branched, from="branched", to="bracket")
>
> ## convert keys and visualize them as trees
> library(ape) # load 'ape' library to plot Newick trees
> plot(read.tree(text=Biokey(bracket1, from="bracket", to="newick")))
> plot(read.tree(text=Biokey(bracket2, from="bracket", to="newick")))
> plot(read.tree(text=Biokey(branched, from="branched", to="newick")))
> plot(read.tree(text=Biokey(serial, from="serial", to="newick")))
>
> detach(keys)
>
> ## to make a new bracket key (without backreferences)
> ## supply three columns: id, description and 'goto'+terminal
> bracket3 <- read.table(as.is=TRUE, text="
+ 1 Small Ant
+ 1 Big 2
+ 2 Blue Sky
+ 2 Green Grass
+ ")
> bracket3
V1 V2 V3
1 1 Small Ant
2 1 Big 2
3 2 Blue Sky
4 2 Green Grass
> Biokey(bracket3, from="bracket", to="newick")
[1] "(Ant,(Sky,Grass));"
> cophenetic(ape::read.tree(text=Biokey(bracket3, from="bracket", to="newick")))
*** caught segfault ***
address 0x1, cause 'memory not mapped'
Traceback:
1: dist.nodes(x)
2: cophenetic.phylo(ape::read.tree(text = Biokey(bracket3, from = "bracket", to = "newick")))
3: cophenetic(ape::read.tree(text = Biokey(bracket3, from = "bracket", to = "newick")))
An irrecoverable exception occurred. R is aborting now ...
- checking PDF version of manual ... [14s/21s] OK
- checking HTML version of manual ... [7s/13s] OK
- checking for non-standard things in the check directory ... OK
- checking for detritus in the temp directory ... OK
- DONE
Status: 1 ERROR, 1 NOTE