deepdep
deepdep copied to clipboard
in shiny app, clicking on a package name fails
Bug In the shiny app, clicking on a package name fails to get and use the actual package name.
Steps to reproduce the behavior
- 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)
- deepdep_shiny()
- type a package name in Package to visualize: (such as leaflet)
- 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"]