-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ab7a5be
commit a111d60
Showing
2 changed files
with
28 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,34 @@ | ||
# glassdoor | ||
|
||
<!-- README.md is generated from README.Rmd. Please edit that file --> | ||
glassdoor | ||
========= | ||
|
||
The goal of glassdoor is to provide a Glassdoor API for R | ||
|
||
[![Travis build status](https://travis-ci.org/muschellij2/glassdoor.svg?branch=master)](https://travis-ci.org/muschellij2/glassdoor) | ||
[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/muschellij2/glassdoor?branch=master&svg=true)](https://ci.appveyor.com/project/muschellij2/glassdoor) | ||
[![Coverage status](https://img.shields.io/coveralls/muschellij2/glassdoor.svg)](https://coveralls.io/r/muschellij2/glassdoor?branch=master) | ||
[![CRAN status](http://www.r-pkg.org/badges/version/glassdoor)](https://cran.r-project.org/package=glassdoor) | ||
|
||
## Example | ||
[![Travis build status](https://travis-ci.org/muschellij2/glassdoor.svg?branch=master)](https://travis-ci.org/muschellij2/glassdoor) [![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/muschellij2/glassdoor?branch=master&svg=true)](https://ci.appveyor.com/project/muschellij2/glassdoor) [![Coverage status](https://coveralls.io/repos/github/muschellij2/glassdoor/badge.svg?branch=master)](https://coveralls.io/r/muschellij2/glassdoor?branch=master) [![CRAN status](http://www.r-pkg.org/badges/version/glassdoor)](https://cran.r-project.org/package=glassdoor) | ||
|
||
Installation | ||
------------ | ||
|
||
You can install glassdoor from github with: | ||
|
||
``` r | ||
# install.packages("devtools") | ||
devtools::install_github("muschellij2/glassdoor") | ||
``` | ||
|
||
Glassdoor API Keys | ||
------------------ | ||
|
||
In order to use the `glassdoor` package, you need an API key from Glassdoor (either <https://www.glassdoor.com/developer/register_input.htm> or click Get API key from <https://www.glassdoor.com/developer/index.htm>). | ||
|
||
This is a basic example which shows you how to solve a common problem: | ||
After that is done, you need to set up the API keys. The keys are grabbed using | ||
|
||
``` r | ||
## basic example code | ||
Sys.getenv("GLASSDOOR_PID") | ||
Sys.getenv("GLASSDOOR_PAT") | ||
``` | ||
|
||
so you can set these either using `~/.Renviron` (will work generally) or your standard `.profile` or `.bash_profile` (if you work with command lines). | ||
|
||
I recommend `.Renviron` as that works well with RStudio. |