# Can't upload data with gx\_get() in Rstudio tool or install GalaxyConnect into desktop R Studio

**URL:** <https://help.galaxyproject.org/t/cant-upload-data-with-gx-get-in-rstudio-tool-or-install-galaxyconnect-into-desktop-r-studio/11618>\
**Category:** usegalaxy.eu support\
**Tags:** gtn-tutorial, troubleshooting, rstudio\
**Created:** [January 29, 2024, 11:13pm UTC](https://help.galaxyproject.org/t/cant-upload-data-with-gx-get-in-rstudio-tool-or-install-galaxyconnect-into-desktop-r-studio/11618 "2024-01-29T23:13:38Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![wm75](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/wm75/32/56_2.png) [@wm75](https://help.galaxyproject.org/u/wm75)\
**Post date:** [February 1, 2024, 11:07am UTC](https://help.galaxyproject.org/t/cant-upload-data-with-gx-get-in-rstudio-tool-or-install-galaxyconnect-into-desktop-r-studio/11618/3 "2024-02-01T11:07:23Z")

</div>

> Even thought the import 1 ect message will pop up, no data files are being imported as far as I can tell.

There isn’t anything wrong here, but you need to assign the return value to some variable to be able to work with it, e.g.,

`my_data <- gx_get(2)`

Note: `gx_get()` makes the specified data available inside RStudio, but what’s returned by it is just a path to the data, for example the string `"/import/2"`.

With this path you can then read from the resource with R functions that you’d normally use to read your input, e.g., if your data is tabular you could do sth like:

`read.table(my_data, header=T, sep="\t", row.names = 1)`

which in this case is equivalent to:

`read.table("/import/2", header=T, sep="\t", row.names = 1)`

---

_[View the full topic](https://help.galaxyproject.org/t/cant-upload-data-with-gx-get-in-rstudio-tool-or-install-galaxyconnect-into-desktop-r-studio/11618)._
