Coerces a RevBayes output string into an equivalent R object. Automatically determines R object type based on the structure of the string, and returns the original string if R object equivalent cannot be determined.

coerceRev(revString)

Arguments

revString

character - Output from RevBayes

Value

rObject: Type varies depending on Rev object type. R object-formatted output coerced from a RevBayes output string.

Examples

if (FALSE) {
coerceRev("[1, 2, 3, 4]")
}