12.07.2015 Views

R dummies

R dummies

R dummies

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

[1] “F:/git/roxygen2/roxygen2/README.md”Manipulating filesOccasionally, you may want to write a script that will traverse a given folderand perform actions on all the files or a subset of files in that folder.To get a list of files in a specific folder, use list.files() or dir(). These twofunctions do exactly the same thing, but for backward-compatibility reasons, thesame function has two names:> list.files(file.path(“F:”, “git”, “roxygen2”))[1] “roxygen2” “roxygen2.Rcheck”[3] “roxygen2_2.0.tar.gz” “roxygen2_2.1.tar.gz”Table 12-2 lists some other useful functions for working with files.Table 12-2 Useful Functions for Manipulating FilesFunctionDescription

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!