Cypress
Cypress

Reputation: 357

How to manually install rChart?

I can't install rChart from Rstudio due to some firewall settings in my company computer, so I wonder if I can install it manually. I know it is possible to do that by using install.packages, but it seems the installation was not successful. Here is what I did:

  1. download the master file from https://github.com/ramnathv/rCharts
  2. used the following code to install:

    install.packages('\rCharts-master.zip',destdir = "/R/win-library/3.2",repos = NULL)

  3. load the package library(rCharts-master) and resulted in the following error message:

    Error in library(rCharts - master) : 'package' must be of length 1

Upvotes: 0

Views: 997

Answers (2)

Sophia.Z
Sophia.Z

Reputation: 11

rChart is a package on GitHub, try

install.packages("devtools")

library(devtools)

install_github('ramnathv/rCharts')

library(rCharts)

It should work.

Upvotes: 1

andrechalom
andrechalom

Reputation: 737

The name of the package you're trying to load is "rCharts", and not "rCharts-master". Try

library(rCharts)

Upvotes: 0

Related Questions