R knitr: is it possible to use cached results across different machines?

后端 未结 2 548
盖世英雄少女心
盖世英雄少女心 2021-01-13 08:27

Issue solved, see answers for details.

I would like to run some code (with knitr) on a more powerful server and then maybe have the pos

2条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-13 09:03

    I wonder if in addition to @Yihui's answer if the process of copying from one machine to another changes the datetimes on the files so that they look out of date even when nothing has changed.

    Look at the dates on the files involved after copying. If you can figure out which files need to be newer than others then touching them may prevent the rebuilding.

    Another option would be to just paste in the chached pieces directly so that they are not rerun (though that means you have to rerun and repaste manually if you change anything in those parts).

提交回复
热议问题