Packrat fetching sources for local repository on CRAN

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(local.repos = c("./local_package/shinyUtils")))
Initializing packrat project in directory:
- "./"

Adding these packages to packrat:
                    _            
    BH                1.72.0-3    
    shinyUtils   1.0        
    DT                0.16        
    MatrixModels      0.4-1      
    QuantPsyc         1.5        
    R6                2.5.0      
    RColorBrewer      1.1-2      
    RJSONIO           1.3-1.4    
    Rcpp              1.0.5      
    RcppArmadillo     0.10.1.2.0  
    RcppEigen         0.3.3.7.0  
    SQUAREM           2020.5      
    SparseM           1.78        
    
  

Fetching sources for BH (1.72.0-3) ... OK (CRAN current)
Fetching sources for shinyUtils (1.0) ... FAILED
Fetching sources for DT (0.16) ... OK (CRAN current)
Fetching sources for MatrixModels (0.4-1) ... OK (CRAN current)
Fetching sources for QuantPsyc (1.5) ... OK (CRAN current)
Fetching sources for R6 (2.5.0) ... OK (CRAN current)
Fetching sources for RColorBrewer (1.1-2) ... OK (CRAN current)
Fetching sources for RJSONIO (1.3-1.4) ... OK (CRAN current)
Fetching sources for Rcpp (1.0.5) ... OK (CRAN current)
Fetching sources for RcppArmadillo (0.10.1.2.0) ... OK (CRAN current)
Fetching sources for RcppEigen (0.3.3.7.0) ... OK (CRAN current)
Fetching sources for SQUAREM (2020.5) ... OK (CRAN current)
Fetching sources for SparseM (1.78) ... OK (CRAN current)
Fetching sources for packrat (0.5.0) ... 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?)
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 54 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.