Rev Language Reference


ls - List workspace content

Show the content of the workspace.

Usage

ls(Bool all, String filter)

Arguments

all : Bool (pass by value)
Should we print all variables and functions including provided ones by RevBayes?
Default : FALSE
filter : String (pass by value)
List objects for the provided type.
Default : all
Options : all|utility|math|distribution|function|datatype|move|monitor|analysis|file|summary|uncategorized

Return Type

Details

The list functions shows all the variables in the current workspace. You can also see all the functions available if you use ls(all=TRUE)

Example

# now we have an empty workspace
ls()
# next wee add a variable
a <- 1
# and we can see it
ls()

See Also