{"action":"created","issue":{"url":"https://api.github.com/repos/rstudio/rstudio/issues/2859","repository_url":"https://api.github.com/repos/rstudio/rstudio","labels_url":"https://api.github.com/repos/rstudio/rstudio/issues/2859/labels{/name}","comments_url":"https://api.github.com/repos/rstudio/rstudio/issues/2859/comments","events_url":"https://api.github.com/repos/rstudio/rstudio/issues/2859/events","html_url":"https://github.com/rstudio/rstudio/issues/2859","id":326525149,"number":2859,"title":"snapshot/plot browsing repeatedly knits all Rmd files","user":{"login":"ras44","id":9282281,"avatar_url":"https://avatars2.githubusercontent.com/u/9282281?v=4","gravatar_id":"","url":"https://api.github.com/users/ras44","html_url":"https://github.com/ras44","followers_url":"https://api.github.com/users/ras44/followers","following_url":"https://api.github.com/users/ras44/following{/other_user}","gists_url":"https://api.github.com/users/ras44/gists{/gist_id}","starred_url":"https://api.github.com/users/ras44/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ras44/subscriptions","organizations_url":"https://api.github.com/users/ras44/orgs","repos_url":"https://api.github.com/users/ras44/repos","events_url":"https://api.github.com/users/ras44/events{/privacy}","received_events_url":"https://api.github.com/users/ras44/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-05-25T13:30:41Z","updated_at":"2018-05-30T17:33:55Z","closed_at":null,"author_association":"NONE","body":"### System details\r\n\r\n    RStudio Edition : Server\r\n    RStudio Version : 1.1.414\r\n    OS Version      :  CentOS 7\r\n    R Version       : 3.4.4\r\n\r\n### Steps to reproduce the problem\r\nInstall packrat and create a project with packrat enabled.\r\nInstall many packages (30 for example).\r\nCreate many .Rmd files (about 10).\r\nWhen you snapshot the library, R knits each .Rmd file multiple times (it seems to be once per package).\r\n\r\n\r\n### Describe the problem in detail\r\nafter installing 32 libraries, I run\r\n```\r\npackrat::snapshot(ignore.stale = TRUE, infer.dependencies = FALSE)\r\n```\r\n\r\nOutput indicates that it fetches all sources, but then I notice that the 'Packages' window is repeatedly refreshed before the command completes.  If I switch to the 'Files' window, I can see that each .Rmd file in the project is being knitted repeatedly (perhaps knitted once for each library?).  This leads to what seems like a very long duration for the snapshot operation.\r\n\r\nIn a related issue, I notice that when I have packrat installed and multiple .Rmd files and want to browse plots (by clicking back and forward on the plot navigation icons), the .Rmd files in the project are knitted.  This seems unnecessary and inefficient.\r\n\r\n### Describe the behavior you expected\r\nIf knitting the files is necessary, then knit them all just once.  Or provide an option to manually override this functionality and not knit all .Rmd files when snapshotting or changing plot windows.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/rstudio/rstudio/issues/comments/393250963","html_url":"https://github.com/rstudio/rstudio/issues/2859#issuecomment-393250963","issue_url":"https://api.github.com/repos/rstudio/rstudio/issues/2859","id":393250963,"user":{"login":"kevinushey","id":1976582,"avatar_url":"https://avatars1.githubusercontent.com/u/1976582?v=4","gravatar_id":"","url":"https://api.github.com/users/kevinushey","html_url":"https://github.com/kevinushey","followers_url":"https://api.github.com/users/kevinushey/followers","following_url":"https://api.github.com/users/kevinushey/following{/other_user}","gists_url":"https://api.github.com/users/kevinushey/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinushey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinushey/subscriptions","organizations_url":"https://api.github.com/users/kevinushey/orgs","repos_url":"https://api.github.com/users/kevinushey/repos","events_url":"https://api.github.com/users/kevinushey/events{/privacy}","received_events_url":"https://api.github.com/users/kevinushey/received_events","type":"User","site_admin":false},"created_at":"2018-05-30T17:33:55Z","updated_at":"2018-05-30T17:33:55Z","author_association":"CONTRIBUTOR","body":"The associated Packrat code lives here:\r\n\r\nhttps://github.com/rstudio/packrat/blob/215a30239806dfe4837047c6d1deb2b3f7e8285a/R/dependencies.R#L571-L623\r\n\r\nhttps://github.com/rstudio/packrat/blob/215a30239806dfe4837047c6d1deb2b3f7e8285a/R/dependencies.R#L209-L326\r\n\r\nI think the fix would need to be part of Packrat rather than RStudio, for what it's worth."}}
{"actor":{"display_login":"kevinushey"}}