new files
This commit is contained in:
parent
3af7344581
commit
86c034bb8b
1364 changed files with 21352 additions and 0 deletions
12
Task/Delete-a-file/R/delete-a-file.r
Normal file
12
Task/Delete-a-file/R/delete-a-file.r
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
file.remove("input.txt")
|
||||
file.remove("/input.txt")
|
||||
|
||||
# or
|
||||
file.remove("input.txt", "/input.txt")
|
||||
|
||||
# or
|
||||
unlink("input.txt"); unlink("/input.txt")
|
||||
|
||||
# directories needs the recursive flag
|
||||
unlink("docs", recursive = TRUE)
|
||||
unlink("/docs", recursive = TRUE)
|
||||
Loading…
Add table
Add a link
Reference in a new issue