Deploying a Shiny app

I'm trying to initiate packrat for my R project and in "local repository" location, I provided the location of my local package and all other used packages were named in "external packages" location. My local package is named shinyUtils, it is not on CRAN. The issue I'm facing is that even for my local package it is trying to fetch resources from CRAN and I think That's why following error has occurred. I'm new to shiny, So pls help if I'm not understanding the issue correctly?

packrat::init(options = list(external.packages = c("shiny", "httr", "jsonlite", "stringr", "stringi", "QuantPsyc", "scales", "ggplot2", "ggpubr", "leaps", "grid", "gridExtra", "ggpubr", "readr", "DT", "purrr", "plsRglm", "ggrepel", "lpSolveAPI", "shinythemes", "plyr", "dplyr", "plsdepot", "readxl", "tidyr", "zoo", "data.table", "fs", "qualV", "prodlim", "RJSONIO", "plsdof"), local.repos = c("~/local_package/ShinyUtils")))
Initializing packrat project in directory:

  • "~/"

Adding these packages to packrat:
_
BH 1.72.0-3
ShinyUtils 1.0
MatrixModels 0.4-1
R6 2.5.0
RColorBrewer 1.1-2
Rcpp 1.0.5
RcppArmadillo 0.10.1.2.0
RcppEigen 0.3.3.7.0
SQUAREM 2020.5
SparseM 1.78
globals 0.13.1

Fetching sources for BH (1.72.0-3) ... OK (CRAN current)
Fetching sources for ShinyUtils (1.0) ... FAILED
Fetching sources for MatrixModels (0.4-1) ... OK (CRAN current)
Fetching sources for ggsignif (0.6.0) ... OK (CRAN current)
Fetching sources for globals (0.13.1) ... FAILED
Fetching sources for glue (1.4.2) ... OK (CRAN current)

Error in snapshotSources(project, activeRepos(project), allRecordsFlat) :
Errors occurred when fetching source files:
Error in getSourceForPkgRecord(pkgRecord, sourceDir, availablePkgs, repos) :
Failed to retrieve package sources for ShinyUtils 1.0 from CRAN (internet connectivity issue?)
Error in getSourceForPkgRecord(pkgRecord, sourceDir, availablePkgs, repos) :
Could not find sources for globals (0.13.1).
In addition: Warning messages:
1: The vignette title specified in \VignetteIndexEntry{} is different from the title in the YAML metadata. The former is "Vignette Title", and the latter is "Writing shiny apps for bds". If that is intentional, you may set options(rmarkdown.html_vignette.check_title = FALSE) to suppress this check.
2: The vignette title specified in \VignetteIndexEntry{} is different from the title in the YAML metadata. The former is "Vignette Title", and the latter is "Writing shiny apps for bds". If that is intentional, you may set options(rmarkdown.html_vignette.check_title = FALSE) to suppress this check.
3: In FUN(X[[i]], ...) :
Package 'ShinyUtils 1.0' was installed from sources; Packrat will assume this package is available from a CRAN-like repository during future restores

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.