{"action":"created","issue":{"url":"https://api.github.com/repos/aiorazabala/qmethod/issues/56","labels_url":"https://api.github.com/repos/aiorazabala/qmethod/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/aiorazabala/qmethod/issues/56/comments","events_url":"https://api.github.com/repos/aiorazabala/qmethod/issues/56/events","html_url":"https://github.com/aiorazabala/qmethod/issues/56","id":55793791,"number":56,"title":"make.cards sometimes cannot find pdflatex","user":{"login":"maxheld83","id":5372770,"avatar_url":"https://avatars.githubusercontent.com/u/5372770?v=3","gravatar_id":"","url":"https://api.github.com/users/maxheld83","html_url":"https://github.com/maxheld83","followers_url":"https://api.github.com/users/maxheld83/followers","following_url":"https://api.github.com/users/maxheld83/following{/other_user}","gists_url":"https://api.github.com/users/maxheld83/gists{/gist_id}","starred_url":"https://api.github.com/users/maxheld83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxheld83/subscriptions","organizations_url":"https://api.github.com/users/maxheld83/orgs","repos_url":"https://api.github.com/users/maxheld83/repos","events_url":"https://api.github.com/users/maxheld83/events{/privacy}","received_events_url":"https://api.github.com/users/maxheld83/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aiorazabala/qmethod/labels/administration","name":"administration","color":"c7def8"},{"url":"https://api.github.com/repos/aiorazabala/qmethod/labels/documentation","name":"documentation","color":"fbca04"},{"url":"https://api.github.com/repos/aiorazabala/qmethod/labels/import%20/%20cleaning","name":"import / cleaning","color":"207de5"}],"state":"open","locked":false,"assignee":{"login":"maxheld83","id":5372770,"avatar_url":"https://avatars.githubusercontent.com/u/5372770?v=3","gravatar_id":"","url":"https://api.github.com/users/maxheld83","html_url":"https://github.com/maxheld83","followers_url":"https://api.github.com/users/maxheld83/followers","following_url":"https://api.github.com/users/maxheld83/following{/other_user}","gists_url":"https://api.github.com/users/maxheld83/gists{/gist_id}","starred_url":"https://api.github.com/users/maxheld83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxheld83/subscriptions","organizations_url":"https://api.github.com/users/maxheld83/orgs","repos_url":"https://api.github.com/users/maxheld83/repos","events_url":"https://api.github.com/users/maxheld83/events{/privacy}","received_events_url":"https://api.github.com/users/maxheld83/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-01-28T18:16:06Z","updated_at":"2015-01-28T18:16:42Z","closed_at":null,"body":"Using `make.cards`, with `output.pdf = TRUE`, people may sometimes get the following error message:\r\n\r\n```\r\nError in texi2dvi(file = file, pdf = TRUE, clean = clean, quiet = quiet,  : \r\n  Running 'texi2dvi' on 'AveryZweckformC32010.tex' failed.\r\n```\r\n\r\nIn which case *only* a `*.tex` is generated, but not a PDF.\r\n\r\n(The generated `*.tex`, however, contains no errors and compiles just fine on its own).\r\n\r\nThis is *not* actually a bug with the function, but simply occurs when the current R environment does not know where to find `pdflatex`.\r\n\r\nA solution is [here](http://www.r-bloggers.com/building-r-packages-missing-path-to-pdflatex/):\r\n> ```\r\n> Sys.setenv(PATH=paste(Sys.getenv(\"PATH\"),\"/usr/texbin\",sep=\":\"))\r\n> Now when I run Sys.getenv(\"PATH\") I get\r\n> \"/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin\"\r\n> ```\r\n\r\nThis should go into the docs."},"comment":{"url":"https://api.github.com/repos/aiorazabala/qmethod/issues/comments/71885824","html_url":"https://github.com/aiorazabala/qmethod/issues/56#issuecomment-71885824","issue_url":"https://api.github.com/repos/aiorazabala/qmethod/issues/56","id":71885824,"user":{"login":"maxheld83","id":5372770,"avatar_url":"https://avatars.githubusercontent.com/u/5372770?v=3","gravatar_id":"","url":"https://api.github.com/users/maxheld83","html_url":"https://github.com/maxheld83","followers_url":"https://api.github.com/users/maxheld83/followers","following_url":"https://api.github.com/users/maxheld83/following{/other_user}","gists_url":"https://api.github.com/users/maxheld83/gists{/gist_id}","starred_url":"https://api.github.com/users/maxheld83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxheld83/subscriptions","organizations_url":"https://api.github.com/users/maxheld83/orgs","repos_url":"https://api.github.com/users/maxheld83/repos","events_url":"https://api.github.com/users/maxheld83/events{/privacy}","received_events_url":"https://api.github.com/users/maxheld83/received_events","type":"User","site_admin":false},"created_at":"2015-01-28T18:16:42Z","updated_at":"2015-01-28T18:16:42Z","body":"Ps.: this problem generally appears not to occur in RStudio, which cleverly, always sets the path to `pdflatex` (I'm guessing b/c of some knitr magic)."}}