Install and integrate plotly with R

r
datavisualization

#1

Hi,

I am trying to integrate plotly with my RStudio by following the steps from their website->

http://help.plot.ly/documentation/r/getting-started/

But I am not able to install the packages given in the first 2-3 steps. I am getting errors like->

install_github(“ropensci/plotly”)
Downloading github repo ropensci/plotly@master
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
there is no package called ‘stringi’

devtools::install_github(“ropensci/plotly”)
Downloading github repo ropensci/plotly@master
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
there is no package called ‘stringi’

Why are these errors coming and how can I remove them?

Thanks.


#2

Try installing the “stringi” package manually and see if it works!


#3

@Aditya_Sharma,

Yes it worked.
thanks!


#4

hi ,

i have a problem with plotly package , i was unable to install the package .does anyone help me out wit the solution…

devtools::install_github(“ropensci/plotly”)
Downloading GitHub repo ropensci/plotly@master
from URL https://api.github.com/repos/ropensci/plotly/zipball/master
Installing plotly
trying URL ‘https://cloud.r-project.org/src/contrib/hexbin_1.27.2.tar.gz
Content type ‘application/x-gzip’ length 491560 bytes (480 KB)

downloaded 480 KB

Installing hexbin
‘/usr/lib/R/bin/R’ --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL ‘/tmp/RtmpPqpHm0/devtools69f466cd7e80/hexbin’ --library=’/home/anjana/R/x86_64-pc-linux-gnu-library/3.4’ --install-tests

  • installing source package ‘hexbin’ …
    ** package ‘hexbin’ successfully unpacked and MD5 sums checked
    ** libs
    gfortran -fpic -g -O2 -fstack-protector-strong -c hbin.f -o hbin.o
    /bin/bash: gfortran: command not found
    /usr/lib/R/etc/Makeconf:182: recipe for target ‘hbin.o’ failed
    make: *** [hbin.o] Error 127
    ERROR: compilation failed for package ‘hexbin’
  • removing ‘/home/anjana/R/x86_64-pc-linux-gnu-library/3.4/hexbin’
    Installation failed: Command failed (1)
    ‘/usr/lib/R/bin/R’ --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL ‘/tmp/RtmpPqpHm0/devtools69f472e06d3d/ropensci-plotly-0aa4880’ --library=’/home/anjana/R/x86_64-pc-linux-gnu-library/3.4’ --install-tests

ERROR: dependency ‘hexbin’ is not available for package ‘plotly’

  • removing ‘/home/anjana/R/x86_64-pc-linux-gnu-library/3.4/plotly’
    Installation failed: Command failed (1)