diff --git a/DESCRIPTION b/DESCRIPTION index ae5f140..b4393de 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -45,6 +45,7 @@ Imports: Hmisc, igraph, Matrix, + magrittr, network, stringdist, rworldmap, diff --git a/NAMESPACE b/NAMESPACE index 4da4657..a1fac86 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -13,7 +13,7 @@ importFrom(ggmap,geocode) importFrom(ggplot2,theme) importFrom(dplyr,arrange) importFrom(dplyr,tally) -importFrom(dplyr, "%>%") +importFrom(magrittr, "%>%") importFrom(network,"%v%") importFrom(rworldmap,addMapLegend) importFrom(stats,na.omit) diff --git a/R/plot_net_country.R b/R/plot_net_country.R index f6667a2..a1d8f71 100644 --- a/R/plot_net_country.R +++ b/R/plot_net_country.R @@ -45,6 +45,7 @@ plot_net_country <- function(data, lineAlpha = 0.5) { requireNamespace(package = "dplyr", quietly = TRUE) + requireNamespace(package = "magrittr", quietly = TRUE) fixable_countries<-data %>% dplyr::filter(is.na(country)==FALSE & is.na(lat)==TRUE) %>% diff --git a/codemeta.json b/codemeta.json index 4a44702..d95204a 100644 --- a/codemeta.json +++ b/codemeta.json @@ -163,6 +163,18 @@ }, "sameAs": "https://github.com/dkahle/ggmap" }, + { + "@type": "SoftwareApplication", + "identifier": "magrittr", + "name": "magrittr", + "provider": { + "@id": "https://cran.r-project.org", + "@type": "Organization", + "name": "Comprehensive R Archive Network (CRAN)", + "url": "https://cran.r-project.org" + }, + "sameAs": "https://CRAN.R-project.org/package=magrittr" + }, { "@type": "SoftwareApplication", "identifier": "ggplot2",