Learn R Programming

CSGo

R client for accessing Steam’s REST API specifically for the Counter-Strike Global Offensive Game (CS Go) data. Check out the Steam documentation website for more information.

Package Functionality

The goal of CSGo is to provide an easy way to connect and pull data from the Steam API specifically for the Counter-Strike Global Offensive Game (CS Go).

Responsible use

The CSGo package should be used in strict accordance with Steam Api Terms of Use.

Installation

To get the current released version from CRAN:

install.packages("CSGo")

To get the current development version from GitHub:

# install.packages("devtools")
devtools::install_github("adsoncostanzifilho/CSGo")

Example

The first step to use the CSGo package is to have your own credentials (API key) to pull the CSGo data from the Steam API.

For more information about how to get your own API Key run in your R vignette("auth", package = "CSGo").

Now that you already have your API Key you should be able to collect your own CSGo data as well as your friends’ data.

library(CSGo)

# to get my own statistics
my_stats <- get_stats_user(api_key = 'your_key', user_id = '76561198263364899')

# to get the statistics of all my "public" friends
friends_stats <- get_stats_friends(api_key = 'your_key', user_id = '76561198263364899')

PS: Take a look at the vignette("usecase", package = "CSGo") to get some ideas.

Copy Link

Version

Install

install.packages('CSGo')

Monthly Downloads

61

Version

0.6.7

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Adson Costanzi

Last Published

May 7th, 2021

Functions in CSGo (0.6.7)

support

Categories and Descriptions of the Statistics Data
weapon_pictures

Weapon Images
%>%

Pipe operator
theme_csgo

CSGo theme
get_stats_user

Get the User Statistics
csgo_api_friend

CS Go Friends
scale_fill_csgo

CSGo color palette - fill
csgo_api_stats

CS Go Statistics
scale_color_csgo

CSGo color palette - color
csgo_api_profile

CS Go User Profile
csgo_api_ach

CS Go Achievements
get_stats_friends

Get the Friends Statistics
map_pictures

Maps Images