In order to use RStudio Connect as a board, you need to authenticate first. When using RStudio, you can authenticate launching Tools - Global Options - Publishing - Connect, and follow the instructions from that wizard:

Once an RStudio Connect account is registered in RStudio, you can simply run:

Notice that board_register_rsconnect() is just an alias with named parameters to board_register(); the previous code is equivalent to:


If you happen to have multiple RStudio Connect servers registered, you will have to specify the server parameter. Similarly, when multiple accounts are registered, you will need to specify the account parameter.

Once the RStudio Connect board is registered, you can pin and search using pin(), pin_get() and pin_find() as usual.


Like in other boards, you can create pins for iris and mtcars by setting board to the RStudio Connect board,

pin(iris, description = "The iris data set", board = "rsconnect")
pin(mtcars, description = "The motor trend cars data set", board = "rsconnect")

After a pin is created, the pin also becomes available in RStudio Connect,

You can also retrieve pins back from RStudio Connect using the now familiar pin_get() function.

pin_get("iris", board = "rsconnect")
# A tibble: 150 x 5
   Sepal.Length Sepal.Width Petal.Length Petal.Width Species
          <dbl>       <dbl>        <dbl>       <dbl> <fct>  
 1          5.1         3.5          1.4         0.2 setosa 
 2          4.9         3            1.4         0.2 setosa 
 3          4.7         3.2          1.3         0.2 setosa 
 4          4.6         3.1          1.5         0.2 setosa 
 5          5           3.6          1.4         0.2 setosa 
 6          5.4         3.9          1.7         0.4 setosa 
 7          4.6         3.4          1.4         0.3 setosa 
 8          5           3.4          1.5         0.2 setosa 
 9          4.4         2.9          1.4         0.2 setosa 
10          4.9         3.1          1.5         0.1 setosa 
# … with 140 more rows


You can then search pins in your RStudio Connect server using pin_find(), which by default search all boards but you can also explicitly request to use this particular RStudio Connect board:

pin_find("mt", board = "rsconnect")
# A tibble: 1 x 4
  name             description                       type  board    
  <chr>            <chr>                             <chr> <chr>    
1 jluraschi/mtcars "The motor trend cars data set. " table rsconnect

Notice that the given ‘mt’ search keyword is searched as a prefix in the pin name.


You can share pins with others in RStudio Connect, by changing the viewers of the document to specific groups or all users with access; or alternatively, to specific users. This is accomplished by opening the new published pin and then changing access under the settings tab.

Once you share this pin with specific users, they can follow the same steps to register their RStudio Connect board, to download this pin.


One significant advantage from using RStudio Connect over other boards is its ability to schedule R Markdown reports to run automatically. This allows you to automate the creation of pins and also consume pins published manually from automated reports.

To support automation you need to use an RStudio Connect API Key as your authentication method. Therefore, the first step is to create an API Key, once created, you will need to register the board as follows:

However, since it’s a best practice to not store secrets in plain text, pins will also read the key from the RSCONNECT_API environment variable, or you can retrieve explicitly as Sys.getenv("RSCONNECT_API") before assigning it to the key parameter.

Once authenticated, you can use pins as you would normally would. Let’s take a look at an automated R Markdown report which retrieves the latest news from the BBC which we can then schedule to run daily to update the pin:

Please note that experimental support for pins was introduced in RStudio Connect 1.7.8.