removeIfExists function

Remove a file, if it exists (useful for temporary files which may or may not have been created)

Remove a file, if it exists (useful for temporary files which may or may not have been created)

removeIfExists(tmp_filename)

Arguments

  • tmp_filename: A path to a local file

Returns

NULL if file is missing, otherwise TRUE/FALSE depening on successful removal

  • Maintainer: Chris Bielow
  • License: MIT + file LICENSE
  • Last published: 2025-03-23