daattali / timevis

📅 Create interactive timeline visualizations in R
http://daattali.com/shiny/timevis-demo/
Other
653 stars 157 forks source link

dependencies not automatically installed #10

Closed GrayAlex49 closed 7 years ago

GrayAlex49 commented 7 years ago

When installing from CRAN, timevis does not automatically install xtable if it is not present but then fails to load if its not installed. I know several other packages automatically install their dependencies on install if needed.

daattali commented 7 years ago

I didn't think xtable was required at all for the package. What error are you getting? I'm not sure where xtable comes into play with timevis

GrayAlex49 commented 7 years ago

While trying to load the package. It loaded fine after I installed xtable

package ‘timevis’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in C:\Users----\AppData\Local\Temp\Rtmp40NmIe\downloaded_packages library(timevis) Error : .onLoad failed in loadNamespace() for 'timevis', details: call: loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) error: there is no package called ‘xtable’ Error: package or namespace load failed for ‘timevis’ install.packages("xtable") Installing package into ‘C:/Users/----/Documents/R/win-library/3.3’ (as ‘lib’ is unspecified) trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/xtable_1.8-2.zip' Content type 'application/zip' length 710068 bytes (693 KB) downloaded 693 KB package ‘xtable’ successfully unpacked and MD5 sums checked The downloaded binary packages are in C:\Users----\AppData\Local\Temp\Rtmp40NmIe\downloaded_packages

library(timevis)

daattali commented 7 years ago

I just installed a brand new version of R with absolutely no packages installed, and tried installing timevis. It does look like xtable was one of the packages it installed. I guess it's a dependency of some other package. Maybe it was a one time random error that happened to you that won't happen again?

> install.packages("timevis")
also installing the dependencies ‘stringi’, ‘magrittr’, ‘formatR’, ‘highr’, ‘markdown’, ‘stringr’, ‘bitops’, ‘digest’, ‘Rcpp’, ‘yaml’, ‘knitr’, ‘caTools’, ‘evaluate’, ‘base64enc’, ‘httpuv’, ‘mime’, ‘xtable’, ‘R6’, ‘htmltools’, ‘htmlwidgets’, ‘jsonlite’, ‘rmarkdown’, ‘shiny’
GrayAlex49 commented 7 years ago

Well thats weird, thank you for checking it out.

daattali commented 7 years ago

Thanks for reporting :)