If I understand your question, you need to either assign the result of system.file
or nest the commands. So either:
file <- system.file('tree.rda', 'example', package = 'phyViz')
load(file)
or
load(system.file('tree.rda', 'example', package = 'phyViz'))
should make the data available. Try it on the command line and do ls()
afterwards to see if it is there.