Tuesday 9 July 2013

Synchronize the folder to the server in the Rstudio



  1. Install the WinSCP
  1. Set WinSCP installation path to the WIN7 Environment Variable in $PATH
  1. Write the code:
    1. Winscp_sync.txt:
                  open stored_session_name_in_WinSCP
                  synchronize both E:\Projects\R\data\server /homed/home/shi/anthony/tfbs_pwm/rsnp
                  exit
  1. Winscp_sync.bat:
                WinSCP.exe /console /script=winscp_sync.txt
  1. In Rstudio
               Call: system('./winscp_sync.bat')#Path needed

No comments:

Post a Comment