%r

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

%fs ls /tmp

above does not show that the file df.csv exist

below will have error:

%r

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

Warning in file(file, ifelse(append, "a", "w")) :

cannot open file '/dbfs/tmp/df.csv': No such file or directory

Error in file(file, ifelse(append, "a", "w")) :

cannot open the connection

Some(<code style = 'font-size:10pt'> Error in file(file, ifelse(append, &quot;a&quot;, &quot;w&quot;)): cannot open the connection </code>)