Using R, how do we write csv file to say dbfs:/tmp?

THIAM_HUATTAN
Valued Contributor

let us say I already have the data 'TotalData'

write.csv(TotalData,file='/tmp/TotalData.csv',row.names = FALSE)

I do not see any error from above

when I list files below:

%fs ls /tmp

I do not see any files written there. Why?