Skip to content

Commit

Permalink
Merge pull request #204 from rstudio/fix-typo
Browse files Browse the repository at this point in the history
we forgot glue in a few places
  • Loading branch information
colearendt authored Feb 14, 2024
2 parents f9499b2 + 29eb7b7 commit 76fd801
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/variant.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Variant <- R6::R6Class(
get_variant = function() {self$variant},
#' @description Get and store the (remote) variant data.
get_variant_remote = function() {
variant <- self$get_connect()$GET("variants/{self$get_variant()$id}")
variant <- self$get_connect()$GET(glue::glue("variants/{self$get_variant()$id}"))
self$variant
},
#' @description Initialize this variant.
Expand Down Expand Up @@ -71,13 +71,13 @@ Variant <- R6::R6Class(
#' @description Get the subscribers.
get_subscribers = function() {
warn_experimental("subscribers")
self$get_connect()$GET("variants/{self$get_variant()$id}/subscribers")
self$get_connect()$GET(glue::glue("variants/{self$get_variant()$id}/subscribers"))
},
#' @description Remove a named subscriber.
#' @param guid User GUID.
remove_subscriber = function(guid) {
warn_experimental("subscribers")
self$get_connect()$DELETE("variants/{self$get_variant()$id}/subscribers/{guid}")
self$get_connect()$DELETE(glue::glue("variants/{self$get_variant()$id}/subscribers/{guid}"))
},
#' @description Add named subscribers.
#' @param guids User GUIDs.
Expand Down

0 comments on commit 76fd801

Please sign in to comment.