Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. move_file <- function(from, to) {
  2. todir <- dirname(to)
  3. if (!isTRUE(file.info(todir)$isdir)) dir.create(todir, recursive=TRUE)
  4. file.rename(from = from, to = to)
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement