New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
could not find function "treeToJSON" #97
Comments
The CRAN version does not have the function |
This is an issue for me, when can we expect and update to CRAN version @trafficonese please advise |
What is the update on this issue, @trafficonese? |
I'm not maintainer of this package, so I can't tell you when a new version will be uploaded to CRAN. I think we should ask @bellma-lilly instead. I also don't use the |
I also can't find treeToJson, although I've installed from github (and unloaded the CRAN package's namespace first). Am I missing something? NB: what I'm trying to do is transform a data.tree (Node) tree so I can pass it to jsTree() and thus create a static (jsQuery-enabled) HTML page with a collapsible version of my tree. Any help gratefully appreciated! |
any progress here,,,? |
As far as I can tell it's just waiting on a CRAN release by the maintainer, which I believe is @schaffman5 . As long as it is not released, installing from github should make it accessible:
You could alternatively also copy code here https://github.com/shinyTree/shinyTree/blob/master/R/data.tree-conversion.R and include it in your own package. In terms of the side questions about the internal workings of |
If you have a data.frame with parent & child columns, you can use the following code to produce a nested list for input to shinyTree:
|
I'm using the shinyTree packages to make a tree from a existing data.frame. I made the tree with the function FromDataFrameTable:
xN <- FromDataFrameTable(temp, colLevels = list(NULL, c("floor","Tecno"),
c("")), na.rm = TRUE)
Later I use the function treeToJSON(xN, pretty = TRUE) to reder the tree.
The apps works well in my local instance of Rstudio, a windows machine. But when I upload the app to my shiny web server, the run application stop with an error "could not find function treeToJSON".
The shinytree version in both instances is ver 0.2.7.
The text was updated successfully, but these errors were encountered: