Skip to content
rhtmlMetro
JavaScript R HTML
Branch: master
Clone or download
flipDevTools
Latest commit 067cc35 Sep 12, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
R VIS-423/VIS-424: convert ellipse from svg to css Aug 26, 2019
bin initial commit Jul 31, 2017
build/config bdd: change selector Jul 7, 2019
inst/htmlwidgets VIS-423/VIS-424: convert ellipse from svg to css Aug 26, 2019
man VIS-423/VIS-424: convert ellipse from svg to css Aug 26, 2019
theSrc VIS-423/VIS-424: convert ellipse from svg to css Aug 26, 2019
.eslintignore initial commit Jul 31, 2017
.eslintrc VIS-423/VIS-424: convert ellipse from svg to css Aug 26, 2019
.gitignore remove upDown, use newest rhtmlBuildUtils, remove all copy/paste left… Jul 4, 2019
.travis.yml remove upDown, use newest rhtmlBuildUtils, remove all copy/paste left… Jul 4, 2019
DESCRIPTION Set package version to 1.0.0 Sep 12, 2019
NAMESPACE remove upDown, use newest rhtmlBuildUtils, remove all copy/paste left… Jul 4, 2019
README.md VIS-423/VIS-424: convert ellipse from svg to css Aug 26, 2019
gulpfile.js remove upDown, use newest rhtmlBuildUtils, remove all copy/paste left… Jul 4, 2019
package-lock.json VIS-423/VIS-424: convert ellipse from svg to css Aug 26, 2019
package.json

README.md

rhtmlMetro

rhtmlMetro

Installation in R

  1. library(devtools)
  2. install_github('Displayr/rhtmlMetro')

Simplest Example to verify installation:

rhtmlMetro::Box(text = "text")

rhtmlMetro::Box(text = "ellipse", border.width = 3, border.color = "black", background.shape = "Ellipse", background.color = "lightblue")

Local Installation to Develop/Contribute

Prerequisites - For help installing prerequisites see the Prequisite Installation Help section below

  1. nodejs >= 8.15
  2. (optional) r >= 3.0.0 - you can develop without R, but cannot produce r docs or test in r

Installing the rhtmlMetro code

  1. Change directory to the place where you put git projects
  2. type git clone git@github.com:Displayr/rhtmlMetro.git ENTER
  3. type cd rhtmlMetro ENTER
  4. type npm install ENTER
    1. npm install is noisy and will print several warnings about UNMET and DEPRECATED. Ignore these and only make note of errors. If it fails, try running it again.
  5. type gulp serve ENTER
    1. If gulp serve does not work try ./node_modules/.bin/gulp serve. To correct this and to make your nodejs life easier you should add ./node_modules/.bin to your PATH. Consult the Internet for instructions on how to do so on your OS of choice.

If this worked, then the gulp serve command opened your browser and you are looking at http://localhost:9000. You should see a page listing a bunch of links to examples, each example shows the simple 4 square widget template. These examples are defined in the internal www content directory.

Prerequisite Installation Help

Install nodejs on OSX

  1. Install brew by following instructions here : http://brew.sh/
  2. Install nvm (node version manager) by running brew install nvm
  3. Install node by running nvm install 6.1.0 on the terminal

Install nodejs on Windows

  1. Setup nodist. https://github.com/marcelklehr/nodist and find the link to the official installer.
  2. Open the command prompt. Type: nodist v6.1.0
  3. Type node -v and verify the version is correct

R on OSX

  1. Install brew by following instructions here : http://brew.sh/
  2. Run the following commands:
    brew tap homebrew/science
    brew install Caskroom/cask/xquartz
    brew install r
    
  3. Now start r by running the R r command, and in the R terminal run these commands:
        install.packages("devtools")
        install.packages("roxygen2")
    

Displayr logo

You can’t perform that action at this time.