fileSize.Rd 679 B

12345678910111213141516171819202122232425262728293031
  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/fileSize.R
  3. \name{fileSize}
  4. \alias{fileSize}
  5. \title{Get Size of File(s)}
  6. \usage{
  7. fileSize(file, units = "B")
  8. }
  9. \arguments{
  10. \item{file}{\code{character} vector of file(s) with path.}
  11. \item{units}{\code{character}, defaults to "B". Currently available options
  12. are "B", "KB", "MB", "GB" or "TB" for bites, kilo-, mega-, giga- and terabytes.}
  13. }
  14. \value{
  15. \code{numeric} vector of the same length as \code{file} (in \code{units}).
  16. Note that directories are excluded.
  17. }
  18. \description{
  19. Function for getting size of any files.
  20. }
  21. \examples{
  22. \dontrun{
  23. fileSize(list.files("./"))
  24. }
  25. }
  26. \author{
  27. Matteo Mattiuzzi
  28. }