Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 206571

Unable to Install Plotly in R

$
0
0

I am trying to install plotly library in R. I tried following commands:

install.packages("plotly")
library(plotly)

But I got an error.

There is a binary version available but the source version is later:
binary source needs_compilation
plotly  4.5.6  4.6.0             FALSE

installing the source package ‘plotly’

trying URL 'https://cran.rstudio.com/src/contrib/plotly_4.6.0.tar.gz'
Content type 'application/x-gzip' length 980458 bytes (957 KB)
==================================================
downloaded 957 KB

* installing *source* package ‘plotly’ ...
** package ‘plotly’ successfully unpacked and MD5 sums checked
** R
** data
*** moving datasets to lazyload DB
** demo
** inst
** preparing package for lazy loading
Warning: package ‘ggplot2’ was built under R version 3.3.2
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck =    vI[[i]]) : 
there is no package called ‘assertthat’
ERROR: lazy loading failed for package ‘plotly’
* removing    ‘/Library/Frameworks/R.framework/Versions/3.3/Resources/library/plotly’
Warning in install.packages :
installation of package ‘plotly’ had non-zero exit status

The downloaded source packages are in
    ‘/private/var/folders/7c/6q_1znps54zc62j_9pr_tx9c0000gn/T/RtmpyyWVTb/downloaded_packages’

Can someone help with the error to install R?


Viewing all articles
Browse latest Browse all 206571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>