<jupyter_start><jupyter_text>Working with remote files * **Difficulty level**: intermediate* **Time need to lean**: 10 minutes or less* **Key points**:  * Input targets marked by `remote` will be considered as remote files and will not be copied to remote host.  * Output targets marked by `remote` will be considered as remote files and will not be copied to local host    Remote Targets The task execution model automatically synchronize input and output files between local and remote hosts. This can be convenient but 1. If the input files are large and reside on remote host already, there is no need to make the input files available on local host for them to be processed.2. If the output files are large and do not need to be processed locally, there is no need to copy output files to local host.To solve these problems, you can use `remote` targets to specify that the targets are on remote host, and do not need to be synchronized. For example, you could use the following step to process a large input file and only synchronize small output files to local desktop for further analysis:```[10]input: remote('/path/to/large/input/file')output: remote('large_output'), 'summary.stat'task:sh:    script to generate large_output and summary.stat    from large input files.``` The `remote` function accept any one or more SoS targets (e.g. `remote('input.txt')`, `remote('input1.txt', 'input2.txt')`, `remote(fastq_files)`, or `remote(R_Library('ggplot2'))`.<jupyter_code>%run -q bcb

output: remote('result.png')
task: walltime='1h', mem='2G', nodes=1, cores=1

R:
  set.seed(1)
  x <- 1:100
  y <- -0.03*x + rnorm(50)
  png("result.png", height=400, width=600)
  plot(x, y, pch=19, col=rgb(0.5, 0.5, 0.5, 0.5), cex=1.5)
  abline(lm(y ~ x))
  dev.off()<jupyter_output>INFO: No matching tasks are identified. Use option -a to check all tasks.
INFO: 68398bb67cbef06a [32mstarted[0m<jupyter_text>The task is executed successfully on remote host `bcb` but the result file `result.png`, marked as `remote('result.png')` is not synchronized to localhost after the completion of the task.<jupyter_code>!ls result.png<jupyter_output>ls: result.png: No such file or directory