It is also inconvenient that I have to email IT-support to make them manually install new packages. In many cases, I can't just set up local repositories in the organization because, I do not have clearance for that. Personally I dislike all options for including local/private packages, as it defeats the purpose of having a nice easy target for deploying shiny apps. One should always check what options RStudio connect supports at the moment: Any guidance on configuring my repo so packrat can understand it would be great. I think this last part is showing I'm materially misunderstanding something. At no point would a repo have the structure it's looking for? I would have thought this is guaranteed to fail, because repos follow the C://bin/windows/contrib/3.3/ structure. If I drill into packrat:::findLocalRepoForPkg, it fails because it can't find a file/folder called: "C://". If I follow through the functions, I can see the particular point of failure is packrat:::findLocalRepoForPkg(" However when I try to deploy a Shiny app or Rmd which references, I get the following error on my deploy: Error in findLocalRepoForPkg(pkg, repos, fatal = fatal) : This indicates to me that the local repo is set up correctly.Īs an additional aside, I have changed the DESCRIPTION file to have an extra line saying repository:LocalCurrent. Options(repos = c(options("repos")$repos,LocalCurrent = paste0("file:",RepoAddress)))Ĭurrently this works nicely and I can install my custom package from the local repo. # Add this new repo to Rs knowledge of repos. I understand the only way I can get our custom packages to work within apps with RSConnect is to get up a local repo and set our options(repos) to include this.Ĭurrently I have the following: library(drat)Ärat::insertPackage(, repodir = RepoAddress) For our work, we have made custom packages, which we have updated amongst ourselves by opening the project and build+reloading. We have recently got RStudio Connect in my office.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |