mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-11 17:32:46 +00:00
replacing caTools dependency with base64enc (#6349)
* replacing caTools dependency with base64enc * adding review fixes * fix(r) : updated the cran repo url
This commit is contained in:
@@ -26,7 +26,7 @@ Install the dependencies
|
||||
```R
|
||||
install.packages("jsonlite")
|
||||
install.packages("httr")
|
||||
install.packages("caTools")
|
||||
install.packages("base64enc")
|
||||
```
|
||||
|
||||
### Build the package
|
||||
|
||||
@@ -141,7 +141,7 @@
|
||||
{{/operation}}
|
||||
#' }
|
||||
#' @importFrom R6 R6Class
|
||||
#' @importFrom caTools base64encode
|
||||
#' @importFrom base64enc base64encode
|
||||
{{#useRlangExceptionHandling}}
|
||||
#' @importFrom rlang abort
|
||||
{{/useRlangExceptionHandling}}
|
||||
@@ -239,7 +239,7 @@
|
||||
{{#isBasic}}
|
||||
{{#isBasicBasic}}
|
||||
# HTTP basic auth
|
||||
headerParams['Authorization'] <- paste("Basic", caTools::base64encode(paste(self$apiClient$username, self$apiClient$password, sep=":")), sep=" ")
|
||||
headerParams['Authorization'] <- paste("Basic", base64enc::base64encode(charToRaw(paste(self$apiClient$username, self$apiClient$password, sep=":"))))
|
||||
{{/isBasicBasic}}
|
||||
{{/isBasic}}
|
||||
{{#isApiKey}}
|
||||
|
||||
@@ -10,5 +10,5 @@ Encoding: UTF-8
|
||||
License: {{#licenseInfo}}{{licenseInfo}}{{/licenseInfo}}{{^licenseInfo}}Unlicense{{/licenseInfo}}
|
||||
LazyData: true
|
||||
Suggests: testthat
|
||||
Imports: jsonlite, httr, R6, caTools{{#useRlangExceptionHandling}}, rlang{{/useRlangExceptionHandling}}
|
||||
Imports: jsonlite, httr, R6, base64enc{{#useRlangExceptionHandling}}, rlang{{/useRlangExceptionHandling}}
|
||||
RoxygenNote: 6.0.1.9000
|
||||
|
||||
Reference in New Issue
Block a user