# Exporting Data as CSV to a Specific Folder as a Step

**URL:** <https://community.exploratory.io/t/exporting-data-as-csv-to-a-specific-folder-as-a-step/4084>\
**Category:** Uncategorized\
**Created:** [November 6, 2025, 2:36pm UTC](https://community.exploratory.io/t/exporting-data-as-csv-to-a-specific-folder-as-a-step/4084 "2025-11-06T14:36:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Takato\_Shiroto](https://community.exploratory.io/user_avatar/community.exploratory.io/takato_shiroto/32/749_2.png) [@Takato\_Shiroto](https://community.exploratory.io/u/Takato_Shiroto)\
**Post date:** [November 6, 2025, 2:36pm UTC](https://community.exploratory.io/t/exporting-data-as-csv-to-a-specific-folder-as-a-step/4084/1 "2025-11-06T14:36:25Z")

</div>

When you want to constantly export your data to a specific folder as a CSV file based on steps processed in Exploratory, there are times when you want to create an export operation as a step. In that case, select “R Command” from the plus button of the step.

 ![image](https://community.exploratory.io/uploads/default/original/2X/7/7a113b703dc628d729d9700bcf8c5af2b534966e.jpeg)

Specify the following in the R command:

```auto
write_csv(
  path = "/Users/takatoshiroto/Downloads/Test_Export/Sample.csv",
  quote = "all",
  col_names = TRUE
)

```

 ![image](https://community.exploratory.io/uploads/default/original/2X/f/f9889c6bee749d9d3a1f1d6aa41ead806f80a064.png)

The functions and arguments are explained as follows:

- write\_csv(): A function for writing data to a CSV file
- path: Specifies the save destination and file name
- quote: Specifies whether to enclose strings in double quotation marks (“all” encloses all values)
- col\_names: Whether to output column names (TRUE includes column names)

By executing this, you can now export CSV files as a step.

 ![image](https://community.exploratory.io/uploads/default/original/2X/6/63c0dcef7ecf9f8eeb851185926621c187025a69.jpeg)

You can see that the CSV file has been exported when you check the folder.

 ![image](https://community.exploratory.io/uploads/default/original/2X/1/186f492f27a27ba82e2d846d61f50d069588e9ce.jpeg)

If you want to use the AI ​​prompt, please specify the prompt as follows:

```auto
Export the data as a CSV file to the following path. Name the file Sample.csv.

/Users/takatoshiroto/Downloads/Test_Export

```

 ![image](https://community.exploratory.io/uploads/default/original/2X/a/a310df81a82e48b71dd8fd6f4523a5a4b13e4d9c.jpeg)
