krumsieklab / maplet

R statistical toolbox for metabolomics
GNU General Public License v3.0
17 stars 6 forks source link

Bug: mt_plots_net doesn't work in package #117

Closed KelseyChetnik closed 3 years ago

KelseyChetnik commented 3 years ago

In GitLab by @krumsiek on Jun 21, 2020, 23:43

Throws error:

Error in mm.net %e% "pcor" <- abs(data_plot[, which(colnames(data_plot) ==  : 
  could not find function "%e%<-"

Reproducible via running examples/example_net.R

KelseyChetnik commented 3 years ago

In GitLab by @krumsiek on Jun 21, 2020, 23:44

Addition:

#' @importFrom network %e% %v% seems to be the correct way, but still doesn't work. I also tried this: #' @import network

KelseyChetnik commented 3 years ago

In GitLab by @krumsiek on Jun 21, 2020, 23:44

changed the description

KelseyChetnik commented 3 years ago

In GitLab by @kelsey.chetnik on Jun 22, 2020, 15:23

Changed #' @importFrom network %e% %v% to #' @import network and updated the NAMESPACE file according to this change. I am able to run through examples/example_net.R without error.

KelseyChetnik commented 3 years ago

In GitLab by @kelsey.chetnik on Jun 22, 2020, 16:12

closed