Reading in uploaded data in "Galaxy IPython Notebook" using R

Suppose I have uploaded datasets 1 and 2 in galaxy. How can I read it into R? None of these work:
t=scan (1, w= ‘’, nl= 1)
t=scan (‘1’, w= ‘’, nl= 1)
t= scan(get(‘1’).w=’’)

try with this:
my_data <- read.delim(gx_get(1))

gx_get(1) will fetch dataset 1 from your history and return the file location

1 Like