R knitr:是否可以在不同的计算机上使用缓存的结果? [英] R knitr: is it possible to use cached results across different machines?

查看:70
本文介绍了R knitr:是否可以在不同的计算机上使用缓存的结果?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题已解决,请查看答案以获取详细信息.

Issue solved, see answers for details.

我想在功能更强大的服务器上运行一些代码(使用knitr),然后可能在自己的笔记本电脑上进行一些小的更改.即使在整个文件夹中复制,似乎在本地重新编译时也会重建缓存,有没有办法避免这种情况并在缓存中实际使用结果?

I would like to run some code (with knitr) on a more powerful server and then maybe have the possibility of making small changes on my own laptop. Even copying across the entire folder, it seems that the cache is rebuilt when re-compiling locally, is there a way to avoid that and actually use the results in the cache?

推荐答案

更新:问题出在不同计算机上的knitr版本不同.

Update: the problem arose from different versions of knitr on different machines.

从理论上讲,是的-如果您不进行任何更改,则将保留高速缓存.在实践中,您必须仔细检查什么是小变化". 有关缓存的文档页面已说明了何时重建缓存,您需要检查是否这三个条件都满足.

In theory, yes -- if you do not change anything, the cache will be kept. In practice, you have to check carefully what the "small changes" are. The documentation page for cache has explained when the cache will be rebuilt, and you need to check if all three conditions are met.

这篇关于R knitr:是否可以在不同的计算机上使用缓存的结果?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆