Skip to content
Prev 2589 / 3656 Next

cat(..., append=TRUE) on sftp share

Dear R-SIG-Debian Team,

r-devel sent me to you.

Situation:

Ubuntu 16.04, R-3.3.1, and a file in a folder mounted with sftp via 
gnome virtual file system.

    for(i  in  1:10){cat(i,file  = 
"/run/user/1001/gvfs/sftp:host=server/path on server/test2",append  = TRUE)}

gives a file that reads |10| and not |12345678910|

Further checking:

    * A mapped network drive on Windows 7 and R 3.2.5 works fine.
    * A samba share on a Mac works fine.
    * A samba share on Ubuntu 16.04 works fine.
    * An sftp share on Ubuntu 16.04 does not work, replicated on 2 machines.
    * Handing over a connection to file argument works fine.
    * On the Linux server it worked fine, I am not sure how it is mounted
      there

see also:

https://github.com/klutometis/roxygen/issues/495


Cheers,
Guido