Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/whitead/sqlshare-r
SQLShare API for R
https://github.com/whitead/sqlshare-r
Last synced: about 1 month ago
JSON representation
SQLShare API for R
- Host: GitHub
- URL: https://github.com/whitead/sqlshare-r
- Owner: whitead
- License: other
- Created: 2013-04-04T19:40:07.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2021-08-02T18:33:51.000Z (over 3 years ago)
- Last Synced: 2024-10-16T02:59:08.618Z (3 months ago)
- Language: R
- Size: 18.6 KB
- Stars: 2
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
SQLShare API for R
===================**This project is no longer maintaned**
This provides a minimal API for accessing [SQLShare](http://escience.washington.edu/sqlshare) in the [R programming language](http://r-project.org). Here's the syntax for
obtaining a data.frame from a table located on SQLShare:sql <- "select * from [[email protected]].[periodic_table]"
elements <- fetch.data.frame(sql)That's it! It loads a config file for authentication from:
~/.sqlshare/config
The format of the file should look like:
[sqlshare]
host=rest.sqlshare.escience.washington.edu
user=your-user-name@your-domain
password=your-api-keyUse this link to generate an [API key](https://sqlshare.escience.washington.edu/sqlshare/#s=credentials).
Installing Dependencies
----------
Before installing, you must install the [RCurl package](http://cran.r-project.org/package=RCurl). If you are using a Linux system, you need to install the libcurl header files. For example, if you're using Ubuntu install the `libcurl-dev` package (using the variant with secure connections enabled) from the command line withsudo apt-get install libcurl4-openssl-dev
If you're using RedHat, install libcurl with
sudo yum -y install curl-devel
Next, regardless of your operating system you must install RCurl. Open
an R session and typeinstall.packages("RCurl")
Installing From CRAN (preferred)
----------
To install from CRAN, type the following command from
an R sessioninstall.packages("sqlshare")
Installing From Source
----------To install the latest version from the source here, use:
wget https://github.com/whitead/sqlshare-r/archive/master.zip
unzip master.zip && rm master.zip
R CMD build sqlshare-r-master
sudo R CMD INSTALL sqlshare_*.tar.gz