{"action":"closed","issue":{"url":"https://api.github.com/repos/r-lib/pkgdown/issues/593","repository_url":"https://api.github.com/repos/r-lib/pkgdown","labels_url":"https://api.github.com/repos/r-lib/pkgdown/issues/593/labels{/name}","comments_url":"https://api.github.com/repos/r-lib/pkgdown/issues/593/comments","events_url":"https://api.github.com/repos/r-lib/pkgdown/issues/593/events","html_url":"https://github.com/r-lib/pkgdown/issues/593","id":308314290,"number":593,"title":"Vignette build does not happen within the package structure","user":{"login":"thk686","id":592841,"avatar_url":"https://avatars0.githubusercontent.com/u/592841?v=4","gravatar_id":"","url":"https://api.github.com/users/thk686","html_url":"https://github.com/thk686","followers_url":"https://api.github.com/users/thk686/followers","following_url":"https://api.github.com/users/thk686/following{/other_user}","gists_url":"https://api.github.com/users/thk686/gists{/gist_id}","starred_url":"https://api.github.com/users/thk686/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thk686/subscriptions","organizations_url":"https://api.github.com/users/thk686/orgs","repos_url":"https://api.github.com/users/thk686/repos","events_url":"https://api.github.com/users/thk686/events{/privacy}","received_events_url":"https://api.github.com/users/thk686/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-25T01:41:31Z","updated_at":"2018-03-26T14:44:29Z","closed_at":"2018-03-26T14:44:29Z","author_association":"NONE","body":"I have the following code in one of my vignettes.\r\n```\r\ncache_file = \"../inst/extdata/query_benchmark_data\"\r\nif (use_cached_data && file.exists(cache_file)) {\r\n  load(cache_file)\r\n} else {\r\n# do stuff that takes about 1 hour to run\r\n  save(build, query, file = cache_file)\r\n}\r\n```\r\nWhen I rebuild the site, it is apparently not building the vignette within the normal package structure as it does not find the cached data. Is there somewhere that data can be cached and reused?"}}
{"actor":{"display_login":"hadley"}}