-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
werwolf333
committed
Jul 30, 2024
1 parent
f56d0f6
commit c672376
Showing
45 changed files
with
3,569 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
^.*\.Rproj$ # Designates the directory as an RStudio Project | ||
^\.Rproj\.user$ # Used by RStudio for temporary files | ||
^README\.Rmd$ # An Rmd file used to generate README.md | ||
^LICENSE\.md$ # Full text of the license | ||
^cran-comments\.md$ # Comments for CRAN submission | ||
^data-raw$ # Code used to create data included in the package | ||
^pkgdown$ # Resources used for the package website | ||
^_pkgdown\.yml$ # Configuration info for the package website | ||
^\.github$ # Contributing guidelines, CoC, issue templates, etc. | ||
^\.Rhistory$ | ||
^\.gitignore$ | ||
^\.openapi-generator-ignore$ | ||
^\.travis\.yml$ | ||
^\.lintr$ | ||
^\.github$ | ||
^\.openapi-generator$ | ||
^docs$ | ||
^git_push\.sh$ | ||
^openapi\.Rcheck$ | ||
^\.\.Rcheck$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# This file is automatically generated by openapi-generator (https://openapi-generator.tech) | ||
# | ||
# Based on https://github.com/r-lib/actions/tree/v2/examples | ||
on: | ||
push: | ||
branches: [main, master] | ||
pull_request: | ||
branches: [main, master] | ||
|
||
name: R-CMD-check | ||
|
||
jobs: | ||
R-CMD-check: | ||
runs-on: ubuntu-latest | ||
env: | ||
R_KEEP_PKG_SOURCE: yes | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: r-lib/actions/setup-r@v2 | ||
with: | ||
use-public-rspm: true | ||
- uses: r-lib/actions/setup-r-dependencies@v2 | ||
with: | ||
extra-packages: any::rcmdcheck, any::roxygen2, any::lintr, local::. | ||
needs: check, roxygen2, lint | ||
- name: Lint | ||
run: lintr::lint_package() | ||
shell: Rscript {0} | ||
- name: Roxygenize | ||
run: | | ||
roxygen2::roxygenize('.', roclets = c('rd', 'collate', 'namespace')) | ||
shell: Rscript {0} | ||
- uses: r-lib/actions/check-r-package@v2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# ref: https://github.com/github/gitignore/blob/master/R.gitignore | ||
|
||
# History files | ||
.Rhistory | ||
.Rapp.history | ||
|
||
# Session Data files | ||
.RData | ||
|
||
# Example code in package build process | ||
*-Ex.R | ||
|
||
# Output files from R CMD build | ||
/*.tar.gz | ||
|
||
# Output files from R CMD check | ||
/*.Rcheck/ | ||
|
||
# RStudio files | ||
.Rproj.user/ | ||
|
||
# produced vignettes | ||
vignettes/*.html | ||
vignettes/*.pdf | ||
|
||
# OAuth2 token, see https://github.com/hadley/httr/releases/tag/v0.3 | ||
.httr-oauth | ||
|
||
# knitr and R markdown default cache directories | ||
/*_cache/ | ||
/cache/ | ||
|
||
# Temporary files created by R markdown | ||
*.utf8.md | ||
*.knit.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
linters: linters_with_defaults( | ||
line_length_linter(160), | ||
object_name_linter = NULL, | ||
cyclocomp_linter = NULL | ||
) | ||
exclusions: list( | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# OpenAPI Generator Ignore | ||
# Generated by openapi-generator https://github.com/openapitools/openapi-generator | ||
|
||
# Use this file to prevent files from being overwritten by the generator. | ||
# The patterns follow closely to .gitignore or .dockerignore. | ||
|
||
# As an example, the C# client generator defines ApiClient.cs. | ||
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: | ||
#ApiClient.cs | ||
|
||
# You can match any string of characters against a directory, file or extension with a single asterisk (*): | ||
#foo/*/qux | ||
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux | ||
|
||
# You can recursively match patterns against a directory, file or extension with a double asterisk (**): | ||
#foo/**/qux | ||
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux | ||
|
||
# You can also negate patterns with an exclamation (!). | ||
# For example, you can ignore all files in a docs folder with the file extension .md: | ||
#docs/*.md | ||
# Then explicitly reverse the ignore rule for a single file: | ||
#!docs/README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
.Rbuildignore | ||
.github/workflows/r-client.yaml | ||
.gitignore | ||
.lintr | ||
.openapi-generator-ignore | ||
.travis.yml | ||
DESCRIPTION | ||
NAMESPACE | ||
R/api_client.R | ||
R/api_response.R | ||
R/auth_error.R | ||
R/get_languages_api.R | ||
R/get_languages_get200_response.R | ||
R/get_languages_get200_response_result_inner.R | ||
R/get_languages_get200_response_result_inner_modes_inner.R | ||
R/translate_post200_response.R | ||
R/translate_post200_response_result.R | ||
R/translate_post_request.R | ||
R/translate_post_request_data.R | ||
R/translate_text_html_transliterate_auto_detection_api.R | ||
README.md | ||
docs/AuthError.md | ||
docs/GetLanguagesApi.md | ||
docs/GetLanguagesGet200Response.md | ||
docs/GetLanguagesGet200ResponseResultInner.md | ||
docs/GetLanguagesGet200ResponseResultInnerModesInner.md | ||
docs/TranslatePost200Response.md | ||
docs/TranslatePost200ResponseResult.md | ||
docs/TranslatePostRequest.md | ||
docs/TranslatePostRequestData.md | ||
docs/TranslateTextHTMLTransliterateAutoDetectionApi.md | ||
git_push.sh | ||
tests/testthat.R | ||
tests/testthat/test_auth_error.R | ||
tests/testthat/test_get_languages_api.R | ||
tests/testthat/test_get_languages_get200_response.R | ||
tests/testthat/test_get_languages_get200_response_result_inner.R | ||
tests/testthat/test_get_languages_get200_response_result_inner_modes_inner.R | ||
tests/testthat/test_translate_post200_response.R | ||
tests/testthat/test_translate_post200_response_result.R | ||
tests/testthat/test_translate_post_request.R | ||
tests/testthat/test_translate_post_request_data.R | ||
tests/testthat/test_translate_text_html_transliterate_auto_detection_api.R |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
7.7.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# ref: https://docs.travis-ci.com/user/languages/r/ | ||
language: r | ||
cache: | ||
directories: | ||
- /home/travis/R/Library | ||
r_packages: | ||
- jsonlite | ||
- httr | ||
- testthat | ||
# uncomment below to install deps with devtools | ||
#install: | ||
#- R -e 'devtools::install_deps(dep = T)' | ||
script: | ||
- R CMD build . | ||
- R CMD check *tar.gz | ||
- R CMD INSTALL *tar.gz | ||
after_failure: | ||
- cat ${TRAVIS_BUILD_DIR}/namsor.Rcheck/tests/testthat.Rout.fail |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Package: openapi | ||
Title: R Package Client for Lingvanex Cloud API | ||
Version: 1.0.0 | ||
Author: person("OpenAPI Generator community", email = "info@lingvanex.com", role = c("aut", "cre")) | ||
Maintainer: OpenAPI Generator community <info@lingvanex.com> | ||
Description: Lingvanex works via HTTPS requests. The URL of all requests starts with https://api-b2b.backenster.com/b1/api/v3/. In case of a protocol selection error and using HTTP, the request will be redirected to the address with the HTTPS protocol (status code 302). <br><br>Authentication of requests is done by adding the “Authorization” header with the following data format: Bearer The key can be created on the user control panel page https://lingvanex.com/account. Example: \"Authorization: Bearer <YOUR_API_KEY>\". | ||
URL: https://github.com/GIT_USER_ID/GIT_REPO_ID | ||
BugReports: https://github.com/GIT_USER_ID/GIT_REPO_ID/issues | ||
Depends: R (>= 3.3) | ||
Encoding: UTF-8 | ||
License: Unlicense | ||
LazyData: true | ||
Suggests: testthat | ||
Imports: jsonlite, httr, R6, base64enc, stringr | ||
RoxygenNote: 7.2.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Generated by openapi-generator: https://openapi-generator.tech | ||
# Do not edit by hand | ||
|
||
import(R6) | ||
import(jsonlite) | ||
import(httr) | ||
import(base64enc) | ||
import(stringr) | ||
|
||
|
||
# Core | ||
export(ApiClient) | ||
export(ApiResponse) | ||
|
||
# Models | ||
export(AuthError) | ||
export(GetLanguagesGet200Response) | ||
export(GetLanguagesGet200ResponseResultInner) | ||
export(GetLanguagesGet200ResponseResultInnerModesInner) | ||
export(TranslatePost200Response) | ||
export(TranslatePost200ResponseResult) | ||
export(TranslatePostRequest) | ||
export(TranslatePostRequestData) | ||
|
||
# APIs | ||
export(GetLanguagesApi) | ||
export(TranslateTextHTMLTransliterateAutoDetectionApi) |
Oops, something went wrong.