mql4beginner mql4beginner - 1 year ago 81
R Question

Why using unlink() won't delete the folder specified?

I've created a folder using

function but when I tried to delete it using
function I didn't have success.How can I overcome this issue?
Here is my toy code:

unlink(NewFolder, recursive = T)

Answer Source

Because your NewFolder doesn't have any path information (it returns TRUE).

NewFolder <- "C:/TestFolder"
unlink(NewFolder, recursive = T)
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download