read.nexus.block: Find a block in a nexus file

Description Usage Arguments Details Value Author(s)

Description

Scan a nexus file for a certain block. This is mainly an internal function, but might be used to diagnose problems with nexus formatted files. It doesn't attempt to process the nexus file, just searches the rawtext for blocks

Usage

1
read.nexus.block(finput, txt = NULL, block, rm.comments = F, silent = F)

Arguments

finput

A nexus file

txt

Alternatively, look through this text

block

The block name to look for

rm.comments

Logical. Should comments be removed? This option is experimental at the moment and does not work for multiline comments.

silent

Verbose output?

Details

Eventually, multiline comments will be supported once the read and scanning of nexus files becomes more sophisticated.

Value

A character vector of the text in the block block.

Author(s)

J. Conrad Stack


phyext documentation built on May 2, 2019, 5:19 p.m.