Loading Newick file into R producing error
11:20 24 Nov 2025

I am trying to load a phylogenetic tree from TimeTree as a Newick file into R. I downloaded the file from TimeTree onto my laptop and attempted to "load workspace" into R, but it came up with this error.

What am I doing wrong, and how do I load my file into R? Thanks in advance.

> load("~/Downloads/Schiedea_species.nwk")
Error in load("~/Downloads/Schiedea_species.nwk") : 
  bad restore file magic number (file may be corrupted) -- no data loaded
In addition: Warning message:
file ‘Schiedea_species.nwk’ has magic number '((((('
  Use of save versions prior to 2 is deprecated 
r phylogeny