All Projects → rstudio → rscloud

rstudio / rscloud

Licence: Unknown, MIT licenses found Licenses found Unknown LICENSE MIT LICENSE.md
Managing RStudio Cloud spaces with R

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to rscloud

Doing Meta Analysis In R
All R codes for the guide "Doing Meta-Analysis in R"
Stars: ✭ 115 (+505.26%)
Mutual labels:  rstudio
Mojave Dark Rstudio Theme
A Total-IDE Dark RStudio Theme inspired by Apple's dark aestheticcc.
Stars: ✭ 198 (+942.11%)
Mutual labels:  rstudio
reportmd
Create multi-page HTML reports in R
Stars: ✭ 23 (+21.05%)
Mutual labels:  rstudio
Rtutor
Creating interactive R Problem Sets. Automatic hints and solution checks. (Shiny or RStudio)
Stars: ✭ 141 (+642.11%)
Mutual labels:  rstudio
Sendcode
Send code and text to macOS and Linux Terminals, iTerm, ConEmu, Cmder, Tmux, Terminus; R (RStudio), Julia, IPython.
Stars: ✭ 166 (+773.68%)
Mutual labels:  rstudio
Postcards
💌 Create simple, beautiful personal websites and landing pages using only R Markdown.
Stars: ✭ 208 (+994.74%)
Mutual labels:  rstudio
Shinyapps links
A collection of Shiny applications (links shared on Twitter)
Stars: ✭ 109 (+473.68%)
Mutual labels:  rstudio
driven-snow
❄️A light, bare-bones custom theme for Rstudio❄️
Stars: ✭ 21 (+10.53%)
Mutual labels:  rstudio
Bookdownplus
The easiest way to use R package bookdown for writing varied types of books and documents
Stars: ✭ 198 (+942.11%)
Mutual labels:  rstudio
R-advantages-over-python
This repository enumerates all the reasons why R is better than python for DS
Stars: ✭ 59 (+210.53%)
Mutual labels:  rstudio
Rcade
Games to procrastinate with RStudio
Stars: ✭ 146 (+668.42%)
Mutual labels:  rstudio
Tidyheatmap
Draw heatmap simply using a tidy data frame
Stars: ✭ 151 (+694.74%)
Mutual labels:  rstudio
Installations mac ubuntu windows
Installations for Data Science. Anaconda, RStudio, Spark, TensorFlow, AWS (Amazon Web Services).
Stars: ✭ 231 (+1115.79%)
Mutual labels:  rstudio
Rstudiothemes
A curated list of RStudio themes found on Github
Stars: ✭ 134 (+605.26%)
Mutual labels:  rstudio
rstudio-global-2021-calendar
Materials to create a calendar file from the rstudio::global(2021) schedule online
Stars: ✭ 14 (-26.32%)
Mutual labels:  rstudio
Rbert
Implementation of BERT in R
Stars: ✭ 114 (+500%)
Mutual labels:  rstudio
Shinystudio
A fully Dockerized, self-hosted development environment for teams. Develop where you serve.
Stars: ✭ 204 (+973.68%)
Mutual labels:  rstudio
ermoji
🤷‍♂️ RStudio Addin to Search and Copy Emoji
Stars: ✭ 26 (+36.84%)
Mutual labels:  rstudio
rdocsyntax
Syntax highlighting for R HTML documentation
Stars: ✭ 20 (+5.26%)
Mutual labels:  rstudio
Hex Stickers
RStudio hex stickers
Stars: ✭ 249 (+1210.53%)
Mutual labels:  rstudio

rscloud

Codecov test coverage Lifecycle: experimental R-CMD-check

API wrappers for the rstudio.cloud service. The initial release includes APIs for managing space memberships, and listing projects within a space.

Getting started

To get started, you’ll need to obtain credentials and set the environment variables RSCLOUD_CLIENT_ID and RSCLOUD_CLIENT_SECRET. The recommended way to set these is by editing your .Renviron file. This can be done using the usethis::edit_r_environ() function. Your .Renviron file may look something like the following:

RSCLOUD_CLIENT_ID=xxxxxxx
RSCLOUD_CLIENT_SECRET=zzzzzzz

To get your credentials log in to RStudio Cloud, click on your name/icon on the right side of the header, and choose “Credentials” from the user panel that appears. That will take you the RStudio User Settings application, where you can create credentials for use with rscloud.

You can install the development version of rscloud as follows:

install.packages("remotes")
remotes::install_github("rstudio/rscloud")

The entry point to most of the functionality is a space. To see the list of spaces you have access to, you can use the rscloud_space_list() function:

library(rscloud)
rscloud_space_list()
#> # A tibble: 2 × 17
#>   space_id name         description project_count user_count account_id project_max
#>      <int> <chr>        <chr>               <int>      <int>      <int>       <int>
#> 1   178750 test-space-1 Test space…             2          1    1093053       10000
#> 2   178762 test-space-2 <NA>                    0          1    1093053       10000
#> # … with 10 more variables: visibility <chr>, space_role <chr>, access <chr>,
#> #   created_time <dttm>, default_project_id <lgl>, default_member_role <chr>,
#> #   access_code <lgl>, permissions <list>, updated_time <dttm>, user_max <int>

To create a space object, use the rscloud_space() function:

space <- rscloud_space(178750)
# you can also use the space name
# space <- rstudio_space(name = "test-space-1")
space
#> RStudio Cloud Space (ID: 178750)
#> <test-space-1>
#>   users: 1 | projects: 2

Adding members to a space can be done via space_member_add():

space %>% 
  space_member_add("[email protected]")

space
#> RStudio Cloud Space (ID: 178750)
#> <test-space-1>
#>   users: 2 | projects: 2

You can get a tidy data frame of space members with space_member_list():

space %>% 
  space_member_list()
#> # A tibble: 1 × 22
#>   user_id display_name  email  updated_time        created_time        last_name
#>     <int> <chr>         <chr>  <dttm>              <dttm>              <chr>    
#> 1 1165199 RStudio Clou… rsclo… 2021-10-05 18:34:36 2021-10-05 18:26:25 Cloud Te…
#> # … with 16 more variables: github_auth_id <lgl>, sso_account_id <lgl>,
#> #   github_auth_token <lgl>, first_name <chr>, grant <list>, picture_url <chr>,
#> #   login_attempts <int>, lockout_until <lgl>, location <chr>, homepage <chr>,
#> #   last_login_attempt <lgl>, google_auth_id <chr>, email_verified <lgl>,
#> #   local_auth <lgl>, organization <chr>, referral <lgl>

You can also provide a data frame of user information, which can be useful when working with spreadsheets of class rosters:

roster <- tibble::tribble(
  ~user_email,
  "[email protected]", 
  "[email protected]"
)

space %>% 
  space_member_add(roster)

space
#> RStudio Cloud Space (ID: 178750)
#> <test-space-1>
#>   users: 4 | projects: 2

You can also work with outstanding invitations:

invitations <- space %>% 
  space_invitation_list()

invitations
#> # A tibble: 3 × 16
#>   invitation_id space_id email   type   accepted expired redirect    accepted_by
#>           <int>    <int> <chr>   <chr>  <lgl>    <lgl>   <chr>       <lgl>      
#> 1        203121   178750 mine+t… space… FALSE    FALSE   https://rs… NA         
#> 2        203122   178750 mine+t… space… FALSE    FALSE   https://rs… NA         
#> 3        203123   178750 mine+t… space… FALSE    FALSE   https://rs… NA         
#> # … with 8 more variables: updated_time <dttm>, sender <list>,
#> #   sso_enabled <lgl>, space_role <chr>, link <chr>, branding <chr>,
#> #   created_time <dttm>, message <lgl>

To resend invitations, use the invitation_send() function:

invitations %>% 
  # filter(...) %>% 
  invitation_send()
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].