[R-sig-Debian] cat(..., append=TRUE) on sftp share

Guido Kraemer gkraemer at bgc-jena.mpg.de
Tue Aug 30 09:23:09 CEST 2016


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


-- 
Guido Kraemer
Max Planck Institute for Biogeochemistry Jena
Department for Biogeochemical Integration
Hans-Knöll-Str. 10
07745 Jena
Germany

phone: +49 3641 576293
e-mail: gkraemer at bgc-jena.mpg.de



More information about the R-SIG-Debian mailing list