From 8c9e8b8bc9ca58afb897be1a9995731ed12e8f39 Mon Sep 17 00:00:00 2001 From: muschellij2 Date: Thu, 21 Jan 2021 13:20:19 -0500 Subject: [PATCH] removed github_auth if not an api call --- R/remote_package_dcf.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/remote_package_dcf.R b/R/remote_package_dcf.R index 66e285e..4b248f5 100644 --- a/R/remote_package_dcf.R +++ b/R/remote_package_dcf.R @@ -54,7 +54,7 @@ get_remote_package_dcf = function( ctype = httr::content_type_json() } req <- httr::GET(url, path = path, - github_auth(pat), + if (api_call) github_auth(pat), httr::write_disk(path = tmp), ctype, ...)