# Error on RStudio of the code "read.tree"

**URL:** <https://help.galaxyproject.org/t/error-on-rstudio-of-the-code-read-tree/14530>\
**Category:** Uncategorized\
**Tags:** rstudio, evolution\
**Created:** [January 23, 2025, 7:04am UTC](https://help.galaxyproject.org/t/error-on-rstudio-of-the-code-read-tree/14530 "2025-01-23T07:04:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jane](https://avatars.discourse-cdn.com/v4/letter/j/ecb155/32.png) [@Jane](https://help.galaxyproject.org/u/Jane)\
**Post date:** [January 23, 2025, 7:04am UTC](https://help.galaxyproject.org/t/error-on-rstudio-of-the-code-read-tree/14530/1 "2025-01-23T07:04:24Z")

</div>

Hi everyone,

I import a RAxML tree file into the RStudio in the Galaxy.

1. When I used the code: ```  
tree ← read.tree(treefile)

```auto
An error reported as: Warning message:
In read.tree(treefile) : no semicolon(s) [end(s) of tree] found

2. When I used the code:
 tree <- read.tree(file = "", text = NULL, tree.names = NULL, skip = 0, comment.char = "", keep.multi = FALSE)
In the console panel, that will appear a number like the screenshot as following.
![1737615805(1)|690x334](upload://aKMw1TFKCZFL18K9iKLEAh71B3x.png)

Can anyone help me?

Thank you.
```

---

<div class="post-metadata">

**Author:** ![dadrasarmin](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/dadrasarmin/32/6508_2.png) [@dadrasarmin](https://help.galaxyproject.org/u/dadrasarmin)\
**Post date:** [February 15, 2025, 5:00pm UTC](https://help.galaxyproject.org/t/error-on-rstudio-of-the-code-read-tree/14530/2 "2025-02-15T17:00:47Z")

</div>

Hi Jane,

I have never used this tool before but in the error message it says that your file does not end with a semicolon “;”. I read [here](https://cran.r-project.org/web/packages/TreeTools/vignettes/load-trees.html) that to use `read.tree` your files should end with a semicolon. You can use a text editor to add a semicolon to the end of your file.

Best regards,  
Armin
