What about something like:
tibble() %>% edit() %>% as_data_frame() %>% dput(file = "my_df.txt")
That would create a human-readable file that can be read in with dget
. Alternatively, if you don't need readability in the output file, saveRDS
would work instead of dput
.
Edit(^2?): @frank, edit
calls the same interface as fix
without requiring a named variable.