Skip to content
bbminfo – Learn from Scratch
Subjects Code examples Library reference
Computer Programming Python Java C++ C Go PHP Kotlin Ruby R Scala Groovy

Tutorial menu

Subjects

Computer Programming MathsPlanned ChemistryPlanned

Lesson contents

Programming resources

All languages Code examples Library reference

Programming languages

Python Java C++ C Go PHP Kotlin Ruby R Scala Groovy
Tutorials/Computer Programming/R/Library/Files and paths

R files and paths

Build a receipt path, save a note, or read a shopping list.

readCharfile.sizefile.copy

Browse by topic

  • Names and locations2
  • Read and write3
  • Manage files and folders6
  • Inspect files and storage3

Names and locations

  • basename and dirnamePrint a receipt name and its folder
  • file.path and basenameBuild a receipt path without hard-coded separators
Advertisements

Read and write

  • readBin and writeBinRecover the brightest setting from a preset
  • readCharRead a saved shopping note
  • writeBinSave an item to a grocery note

Manage files and folders

  • dir.createPrepare nested hand-in folders
  • file.copyKeep a separate copy of a receipt
  • file.removeClear a disposable print preview
  • file.renamePublish a signed attendance sheet
  • list.filesCount only the invoices in a folder
  • list.files recursiveFind a receipt below the month folder

Inspect files and storage

  • Sys.setFileTimeRestore a newsletter publication date
  • file.sizeCheck a receipt attachment size
  • file_test and dir.existsTell an uploaded file apart from its folder

All R library sections

R tutorials

Environment setup› Library reference›
Advertisements
bbminfo – Learn from Scratch
© 2026 bbminfoArtwork creditsPrivacy policy