{"action":"created","issue":{"url":"https://api.github.com/repos/krlmlr/r-appveyor/issues/82","repository_url":"https://api.github.com/repos/krlmlr/r-appveyor","labels_url":"https://api.github.com/repos/krlmlr/r-appveyor/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/krlmlr/r-appveyor/issues/82/comments","events_url":"https://api.github.com/repos/krlmlr/r-appveyor/issues/82/events","html_url":"https://github.com/krlmlr/r-appveyor/issues/82","id":188955752,"number":82,"title":"what if you need pandoc?","user":{"login":"jennybc","id":599454,"avatar_url":"https://avatars.githubusercontent.com/u/599454?v=3","gravatar_id":"","url":"https://api.github.com/users/jennybc","html_url":"https://github.com/jennybc","followers_url":"https://api.github.com/users/jennybc/followers","following_url":"https://api.github.com/users/jennybc/following{/other_user}","gists_url":"https://api.github.com/users/jennybc/gists{/gist_id}","starred_url":"https://api.github.com/users/jennybc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jennybc/subscriptions","organizations_url":"https://api.github.com/users/jennybc/orgs","repos_url":"https://api.github.com/users/jennybc/repos","events_url":"https://api.github.com/users/jennybc/events{/privacy}","received_events_url":"https://api.github.com/users/jennybc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2016-11-13T06:44:56Z","updated_at":"2016-11-19T05:38:44Z","closed_at":"2016-11-14T21:51:09Z","body":"> Currently, all builds use the --no-multiarch switch for checking, and all vignettes (and the VignetteBuilder entry in DESCRIPTION) are removed prior to building (due to the absence of pandoc and LaTeX which are likely to be needed).\r\n\r\nWhat if the package you are checking needs pandoc to run its tests? Is there a way to make it available?\r\n\r\nAll my tests fails with this error:\r\n\r\n```\r\npandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).\r\n```\r\n\r\nI believe I requested a successful installation of pandoc via:\r\n\r\n```\r\nbefore_test:\r\n  - cinst pandoc\r\n```\r\n\r\nbut that does not seem to help."},"comment":{"url":"https://api.github.com/repos/krlmlr/r-appveyor/issues/comments/261695154","html_url":"https://github.com/krlmlr/r-appveyor/issues/82#issuecomment-261695154","issue_url":"https://api.github.com/repos/krlmlr/r-appveyor/issues/82","id":261695154,"user":{"login":"jennybc","id":599454,"avatar_url":"https://avatars.githubusercontent.com/u/599454?v=3","gravatar_id":"","url":"https://api.github.com/users/jennybc","html_url":"https://github.com/jennybc","followers_url":"https://api.github.com/users/jennybc/followers","following_url":"https://api.github.com/users/jennybc/following{/other_user}","gists_url":"https://api.github.com/users/jennybc/gists{/gist_id}","starred_url":"https://api.github.com/users/jennybc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jennybc/subscriptions","organizations_url":"https://api.github.com/users/jennybc/orgs","repos_url":"https://api.github.com/users/jennybc/repos","events_url":"https://api.github.com/users/jennybc/events{/privacy}","received_events_url":"https://api.github.com/users/jennybc/received_events","type":"User","site_admin":false},"created_at":"2016-11-19T05:38:44Z","updated_at":"2016-11-19T05:38:44Z","body":"OK here is an actual solution that installs pandoc once, caches it, and does not re-install it for each build.\r\n\r\nHere's the only part of my `appveyor.yml` that differs from the boilerplate:\r\n\r\n```yml\r\ncache:\r\n  - C:\\RLibrary\r\n  - C:\\Program Files (x86)\\Pandoc\\\r\n\r\n# Adapt as necessary starting from here\r\nbefore_test:\r\n  - ps: >-\r\n      if (-Not (Test-Path \"C:\\Program Files (x86)\\Pandoc\\\")) {\r\n        cinst pandoc\r\n      }\r\n  - ps: $env:Path += \";C:\\Program Files (x86)\\Pandoc\\\"\r\n  - pandoc -v\r\n```"}}
{"actor":{"display_login":"jennybc"}}