Step 4: Get your files and dataΒΆ

There are basically two strategies to working with data in Domino:

In this tutorial, we will use the terminal in Rstudio to copy data into the project.

  1. If you have not done so, please complete Step 3 to start a Rstudio workspace.

Your starting file path is /mnt. By default, this is considered the root of your Domino project. If you add or modify files in /mnt, you can save them back to your project when you stop or sync the workspace.

  1. Use the Tools > Terminal > New Terminal menu to open a Rstudio terminal.

    New terminal in Rstudio

  2. In the new terminal, run the following command to fetch some data from the BMRS:

    curl -o data.csv "https://www.bmreports.com/bmrs/?q=ajax/filter_csv_download/FUELHH/csv/FromDate%3D2019-09-15%26ToDate%3D2019-10-02/&filename=GenerationbyFuelType_20191002_1657"
    

    Rstudio terminal after wget

  3. Do a Full Sync to save the new file data.csv to Domino.

    Full Sync button r

Full sync will save any changes that were made in your workspace session back to your project. After clicking Full Sync, Domino will show you which files have changed during your workspace session.

  1. Enter an informative commit message, then click Continue with Sync.

    Full sync modal r

If you return to your project in Domino and look at the Files page, you will see the raw data has been saved in the latest revision.

Files after full sync

See the documentation on other methods of both copying data into Domino and querying data from Domino.