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