Package dependency package name unavailable

I get a strange error when trying to create and reboot in RStudio. In my description file, I included a package that I created and maintained in my organization. This is not on CRAN. Essentially, when I update the DESCRIPTION file (Depends: ...), I get this error:

==> devtools::document(roclets=c('rd', 'collate', 'namespace', 'vignette'))

Updating fczstudy documentation
Loading fczstudy
Error in (function (dep_name, dep_ver = NA, dep_compare = NA)  : 
  Dependency package surv3 not available.
Calls: suppressPackageStartupMessages ... <Anonymous> -> load_all -> load_depends -> mapply -> <Anonymous>
Execution halted

In this case surv3- this is a package that I support in my organization - I can confirm that it is really installed, because I use it.

This is not like other packages from CRAN. It just started a few days ago. This prevents me from importing my package (surv3)

I am really not sure how to debug this.

traceback() in the console after ctrl + shift + B returns nothing

Here is mine sessionInfo():

R version 3.2.0 (2015-04-16)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 8 x64 (build 9200)

locale:
[1] LC_COLLATE=English_United States.1252 
[2] LC_CTYPE=English_United States.1252   
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C                          
[5] LC_TIME=English_United States.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods  
[7] base     

other attached packages:
[1] surv3_1.01     knitr_1.11     fczstudy_0.1.0 dplyr_0.4.3   
[5] ggplot2_1.0.1 

loaded via a namespace (and not attached):
 [1] Rcpp_0.12.1      assertthat_0.1   digest_0.6.8    
 [4] MASS_7.3-40      R6_2.1.1         grid_3.2.0      
 [7] plyr_1.8.3       gtable_0.1.2     DBI_0.3.1       
[10] magrittr_1.5     scales_0.3.0     stringi_0.5-5   
[13] lazyeval_0.1.10  reshape2_1.4.1   rmarkdown_0.8.1 
[16] proto_0.3-10     tools_3.2.0      stringr_1.0.0   
[19] munsell_0.4.2    yaml_2.1.13      parallel_3.2.0  
[22] colorspace_1.2-6 htmltools_0.2.6 
+4
3

" " > " " , , :

enter image description here

+2

Brandon . , , document, . , , , . , , .

document requireNamespace. , , .onLoad. requireNamespace FALSE ( ), , . , , document .

:

Browse[2]> requireNamespace("thepackage")
Loading required namespace: thepackage
Failed with error:  ‘.onLoad failed in loadNamespace() for 'thepackage', details:
  call: some_function(., some_variable)
  error: could not find function "some_function"
+3

, DESCRIPTION.

, Depends:, (, Ggplot2 Ggplot2)

, , - .

+1
source

Source: https://habr.com/ru/post/1613761/


All Articles