{"comment":{"url":"https://api.github.com/repos/swarm-lab/editR/comments/9319015","html_url":"https://github.com/swarm-lab/editR/commit/81d7be30b2e948240785bccfc54c221b17b41a66#commitcomment-9319015","id":9319015,"user":{"login":"sjmgarnier","id":371449,"avatar_url":"https://avatars.githubusercontent.com/u/371449?v=3","gravatar_id":"","url":"https://api.github.com/users/sjmgarnier","html_url":"https://github.com/sjmgarnier","followers_url":"https://api.github.com/users/sjmgarnier/followers","following_url":"https://api.github.com/users/sjmgarnier/following{/other_user}","gists_url":"https://api.github.com/users/sjmgarnier/gists{/gist_id}","starred_url":"https://api.github.com/users/sjmgarnier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjmgarnier/subscriptions","organizations_url":"https://api.github.com/users/sjmgarnier/orgs","repos_url":"https://api.github.com/users/sjmgarnier/repos","events_url":"https://api.github.com/users/sjmgarnier/events{/privacy}","received_events_url":"https://api.github.com/users/sjmgarnier/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":"","commit_id":"81d7be30b2e948240785bccfc54c221b17b41a66","created_at":"2015-01-16T18:14:57Z","updated_at":"2015-01-16T18:14:57Z","body":"No problem. This is indeed a particular case I think. I use tryCatch to catch errors thrown by knit2html when the markdown file contains errors (e.g. incomplete R code). This way I know if the knitting went well or not. If it doesn't go well (FALSE), I just display the last functioning preview and gray it out. I'm not sure whether there is a more elegant way of doing it. I guess wrapping everything into the tryCatch might be it. "}}