deepdep icon indicating copy to clipboard operation
deepdep copied to clipboard

in shiny app, clicking on a package name fails

Open ejanalysis opened this issue 1 year ago • 0 comments

Bug In the shiny app, clicking on a package name fails to get and use the actual package name.

Steps to reproduce the behavior

  1. use version 4.3 from CRAN (can't find that version on your github repo, so could not do a pull request to fix this)
  2. deepdep_shiny()
  3. type a package name in Package to visualize: (such as leaflet)
  4. click on a package name box in the graph

Expected behavior Should create a new graph with that selected new package name that was clicked on.

Solution suggested In server.R, fix one line by using as.character()

# fixed line:
    new_package <- as.character(adjacency_df[which.min(adjacency_df[["dist_"]]), "name"])
# old line:
    # new_package <-            adjacency_df[which.min(adjacency_df[["dist_"]]), "name"]

ejanalysis avatar May 03 '24 17:05 ejanalysis