dnanexus/OpenBio

Extracting data with R in jupyterlab

AlinaO90 opened this issue · 0 comments

Hi I am trying to follow this notebook for extracting data from the dataset : dx_extract_dataset_r.ipynb

But when I try the following lines of code:

cmd <- paste("dx extract_dataset", dataset, " --fields", field_list, "-o extracted_data.csv")
system(cmd)

data_df <- read_csv("extracted_data.csv", show_col_types = FALSE)
head(data_df)

I get an error:

Error: 'extracted_data.csv' does not exist in current working directory ('/opt/notebooks').

Even when I change the output to the following /mnt/project/Outs/extracted_data.csv I get the same error.

How can I extract the data ? Thanks