[R] Finding the package providing funtion "%du%"

Enrico Schumann e@ @end|ng |rom enr|co@chum@nn@net
Wed Jun 30 13:06:23 CEST 2021


On Wed, 30 Jun 2021, Federico Calboli writes:

> Hello All,
>
> I am playing with igraph (which seems to work for what I have used it).  Nevetheless:
>
> demo('community', package="igraph")
>
>
>
> 	demo(community)
> 	---- ~~~~~~~~~
>
> Type  <Return>	 to start : 
>
>> pause <- function() {}
>
>> ### A modular graph has dense subgraphs
>> mod <- make_full_graph(10) %du% make_full_graph(10) %du% make_full_graph(10)
> Error in make_full_graph(10) %du% make_full_graph(10) %du% make_full_graph(10) : 
>  could not find function "%du%”
>
>
> For the life of mine I cannot find where %du5 is meant
> to come from.  Any clues?  also, any suggestion 9other
> than Google) to *efficiently* find whatever
> dependencies I might be missing?  I did install igraph
> with dependencies = T… but one never knows.
>
> My: 
>> sessionInfo()
> R version 4.1.0 (2021-05-18)
> Platform: x86_64-apple-darwin17.0 (64-bit)
> Running under: macOS Mojave 10.14.6
>
> Matrix products: default
> BLAS:   /Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libRblas.dylib
> LAPACK: /Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libRlapack.dylib
>
> locale:
> [1] en_GB.UTF-8/en_GB.UTF-8/en_GB.UTF-8/C/en_GB.UTF-8/en_GB.UTF-8
>
> attached base packages:
> [1] stats     graphics  grDevices utils     datasets  methods   base     
>
> other attached packages:
> [1] dplyr_1.0.7    magrittr_2.0.1
>
> loaded via a namespace (and not attached):
> [1] fansi_0.5.0      utf8_1.2.1       crayon_1.4.1     R6_2.5.0         lifecycle_1.0.0 pillar_1.6.1     rlang_0.4.11     vctrs_0.3.8      generics_0.1.0  
> [10] ellipsis_0.3.2   tools_4.1.0      glue_1.4.2       purrr_0.3.4      compiler_4.1.0   pkgconfig_2.0.3  tidyselect_1.1.1 tibble_3.1.2  
>
>
>
>
>
>
>
> --
> Federico Calboli
> LBEG - Laboratory of Biodiversity and Evolutionary Genomics
> Charles Deberiotstraat 32 box 2439
> 3000 Leuven
> +32 16 32 87 67
>

You need to quote the name:

   ?`%du%`
   igraph::`%du%`


You may need to say

   library("igraph")

before you run the demo.



-- 
Enrico Schumann
Lucerne, Switzerland
http://enricoschumann.net



More information about the R-help mailing list