forked from loafle/openapi-generator-original
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:
parent
5f2979c434
commit
a0bfc3c1f2
@ -26,7 +26,7 @@ Install the dependencies
|
|||||||
```R
|
```R
|
||||||
install.packages("jsonlite")
|
install.packages("jsonlite")
|
||||||
install.packages("httr")
|
install.packages("httr")
|
||||||
install.packages("caTools")
|
install.packages("base64enc")
|
||||||
```
|
```
|
||||||
|
|
||||||
### Build the package
|
### Build the package
|
||||||
|
@ -141,7 +141,7 @@
|
|||||||
{{/operation}}
|
{{/operation}}
|
||||||
#' }
|
#' }
|
||||||
#' @importFrom R6 R6Class
|
#' @importFrom R6 R6Class
|
||||||
#' @importFrom caTools base64encode
|
#' @importFrom base64enc base64encode
|
||||||
{{#useRlangExceptionHandling}}
|
{{#useRlangExceptionHandling}}
|
||||||
#' @importFrom rlang abort
|
#' @importFrom rlang abort
|
||||||
{{/useRlangExceptionHandling}}
|
{{/useRlangExceptionHandling}}
|
||||||
@ -239,7 +239,7 @@
|
|||||||
{{#isBasic}}
|
{{#isBasic}}
|
||||||
{{#isBasicBasic}}
|
{{#isBasicBasic}}
|
||||||
# HTTP basic auth
|
# 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}}
|
{{/isBasicBasic}}
|
||||||
{{/isBasic}}
|
{{/isBasic}}
|
||||||
{{#isApiKey}}
|
{{#isApiKey}}
|
||||||
|
@ -10,5 +10,5 @@ Encoding: UTF-8
|
|||||||
License: {{#licenseInfo}}{{licenseInfo}}{{/licenseInfo}}{{^licenseInfo}}Unlicense{{/licenseInfo}}
|
License: {{#licenseInfo}}{{licenseInfo}}{{/licenseInfo}}{{^licenseInfo}}Unlicense{{/licenseInfo}}
|
||||||
LazyData: true
|
LazyData: true
|
||||||
Suggests: testthat
|
Suggests: testthat
|
||||||
Imports: jsonlite, httr, R6, caTools{{#useRlangExceptionHandling}}, rlang{{/useRlangExceptionHandling}}
|
Imports: jsonlite, httr, R6, base64enc{{#useRlangExceptionHandling}}, rlang{{/useRlangExceptionHandling}}
|
||||||
RoxygenNote: 6.0.1.9000
|
RoxygenNote: 6.0.1.9000
|
||||||
|
@ -10,5 +10,5 @@ Encoding: UTF-8
|
|||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
LazyData: true
|
LazyData: true
|
||||||
Suggests: testthat
|
Suggests: testthat
|
||||||
Imports: jsonlite, httr, R6, caTools
|
Imports: jsonlite, httr, R6, base64enc
|
||||||
RoxygenNote: 6.0.1.9000
|
RoxygenNote: 6.0.1.9000
|
||||||
|
@ -317,7 +317,7 @@
|
|||||||
#'
|
#'
|
||||||
#' }
|
#' }
|
||||||
#' @importFrom R6 R6Class
|
#' @importFrom R6 R6Class
|
||||||
#' @importFrom caTools base64encode
|
#' @importFrom base64enc base64encode
|
||||||
#' @export
|
#' @export
|
||||||
PetApi <- R6::R6Class(
|
PetApi <- R6::R6Class(
|
||||||
'PetApi',
|
'PetApi',
|
||||||
|
@ -160,7 +160,7 @@
|
|||||||
#'
|
#'
|
||||||
#' }
|
#' }
|
||||||
#' @importFrom R6 R6Class
|
#' @importFrom R6 R6Class
|
||||||
#' @importFrom caTools base64encode
|
#' @importFrom base64enc base64encode
|
||||||
#' @export
|
#' @export
|
||||||
StoreApi <- R6::R6Class(
|
StoreApi <- R6::R6Class(
|
||||||
'StoreApi',
|
'StoreApi',
|
||||||
|
@ -277,7 +277,7 @@
|
|||||||
#'
|
#'
|
||||||
#' }
|
#' }
|
||||||
#' @importFrom R6 R6Class
|
#' @importFrom R6 R6Class
|
||||||
#' @importFrom caTools base64encode
|
#' @importFrom base64enc base64encode
|
||||||
#' @export
|
#' @export
|
||||||
UserApi <- R6::R6Class(
|
UserApi <- R6::R6Class(
|
||||||
'UserApi',
|
'UserApi',
|
||||||
|
@ -18,7 +18,7 @@ Install the dependencies
|
|||||||
```R
|
```R
|
||||||
install.packages("jsonlite")
|
install.packages("jsonlite")
|
||||||
install.packages("httr")
|
install.packages("httr")
|
||||||
install.packages("caTools")
|
install.packages("base64enc")
|
||||||
```
|
```
|
||||||
|
|
||||||
### Build the package
|
### Build the package
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
REPO=http://cran.revolutionanalytics.com
|
REPO=https://cloud.r-project.org
|
||||||
|
|
||||||
export R_LIBS_USER=$HOME/R
|
export R_LIBS_USER=$HOME/R
|
||||||
|
|
||||||
@ -14,7 +14,7 @@ Rscript -e "install.packages('jsonlite', repos='$REPO', lib='$R_LIBS_USER')"
|
|||||||
Rscript -e "install.packages('httr', repos='$REPO', lib='$R_LIBS_USER')"
|
Rscript -e "install.packages('httr', repos='$REPO', lib='$R_LIBS_USER')"
|
||||||
Rscript -e "install.packages('testthat', repos='$REPO', lib='$R_LIBS_USER')"
|
Rscript -e "install.packages('testthat', repos='$REPO', lib='$R_LIBS_USER')"
|
||||||
Rscript -e "install.packages('R6', repos='$REPO', lib='$R_LIBS_USER')"
|
Rscript -e "install.packages('R6', repos='$REPO', lib='$R_LIBS_USER')"
|
||||||
Rscript -e "install.packages('caTools', repos='$REPO', lib='$R_LIBS_USER')"
|
Rscript -e "install.packages('base64enc', repos='$REPO', lib='$R_LIBS_USER')"
|
||||||
Rscript -e "install.packages('rlang', repos='$REPO', lib='$R_LIBS_USER')"
|
Rscript -e "install.packages('rlang', repos='$REPO', lib='$R_LIBS_USER')"
|
||||||
|
|
||||||
R CMD build .
|
R CMD build .
|
||||||
|
Loading…
x
Reference in New Issue
Block a user