Skip to content

Instantly share code, notes, and snippets.

@air-drummer
Last active August 29, 2015 14:09
Show Gist options
  • Save air-drummer/8f28303d265d94dd86fa to your computer and use it in GitHub Desktop.
Save air-drummer/8f28303d265d94dd86fa to your computer and use it in GitHub Desktop.
Go up one folder to save output (especially, large data)
up_one_folder_because_of_git <- dirname(getwd())
data_folder <- file.path(up_one_folder_because_of_git, "data")
dir.create(data_folder, showWarnings = FALSE)
write.table(BIG_TABLE,
file = file.path(data_folder,
paste0(BIG_TABLE_NAME, ".csv")),
sep = ",", row.names = F)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment