Skip to content

Commit

Permalink
remove Sys.getenv() call for old method of acessing tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
JosiahParry committed Feb 16, 2024
1 parent a97c5d3 commit 2d3a04a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/print-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ print.Table <- function(x, ...) {
}

#' @export
head.Table <- function(x, n = 6, token = Sys.getenv("ARCGIS_TOKEN"), ...) {
head.Table <- function(x, n = 6, token = arc_token(), ...) {
collect_layer(x, n, token)
}

Expand Down Expand Up @@ -86,7 +86,7 @@ print.FeatureLayer <- function(x, ...) {

#' @importFrom utils head
#' @export
head.FeatureLayer <- function(x, n = 6, token = Sys.getenv("ARCGIS_TOKEN"), ...) {
head.FeatureLayer <- function(x, n = 6, token = arc_token(), ...) {
collect_layer(x, n, token)
}

Expand Down

0 comments on commit 2d3a04a

Please sign in to comment.