Shortcut to write file to "data/" directory from a pipe

write_data(x, name, dir = "data/")

Arguments

x

Object to write

name

Name of the object (important when loading)

dir

Directory where to save file