I want to export the data as an RDA file

If you want to export data as an rda file, you need to use an R script.

First, create a script by selecting “Script” from the plus button in the scripts section.

Add the following code to the script and save it:

write_rda_file <- function(df, name,
downloads_path = "/Users/takatoshiroto/Downloads/",
compress = TRUE) {
# Create full path for rda file
file_path <- file.path(downloads_path, str_c(name, ".rda"))
# Save dataframe as rda file
assign(name, df)
save(list = name, file = file_path, compress = compress)
return(df)
}

Please modify the path section as needed.

Open the dataframe and select “R Command” from the plus button in the top right.

In the R command, specify as follows to export the rda file:

write_rda_file("filename")