Skip to content

Extracting data with R in jupyterlab #41

Description

@AlinaO90

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions