Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
rcannood committed Sep 19, 2024
0 parents commit 73f19b1
Show file tree
Hide file tree
Showing 51 changed files with 8,571 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .Rbuildignore
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$
33 changes: 33 additions & 0 deletions .github/workflows/r-client.yaml
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
35 changes: 35 additions & 0 deletions .gitignore
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
7 changes: 7 additions & 0 deletions .lintr
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(
)
23 changes: 23 additions & 0 deletions .openapi-generator-ignore
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
49 changes: 49 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
.Rbuildignore
.github/workflows/r-client.yaml
.gitignore
.lintr
.openapi-generator-ignore
.travis.yml
DESCRIPTION
NAMESPACE
R/api_client.R
R/api_response.R
R/default_api.R
R/dimension.R
R/get_record_request_body.R
R/get_records_request_body.R
R/get_values_request_body.R
R/group_by_request_body.R
R/http_validation_error.R
R/measure.R
R/order_by_column.R
R/s3_permissions_request.R
R/validation_error.R
R/validation_error_loc_inner.R
README.md
docs/DefaultApi.md
docs/Dimension.md
docs/GetRecordRequestBody.md
docs/GetRecordsRequestBody.md
docs/GetValuesRequestBody.md
docs/GroupByRequestBody.md
docs/HTTPValidationError.md
docs/Measure.md
docs/OrderByColumn.md
docs/S3PermissionsRequest.md
docs/ValidationError.md
docs/ValidationErrorLocInner.md
git_push.sh
tests/testthat.R
tests/testthat/test_default_api.R
tests/testthat/test_dimension.R
tests/testthat/test_get_record_request_body.R
tests/testthat/test_get_records_request_body.R
tests/testthat/test_get_values_request_body.R
tests/testthat/test_group_by_request_body.R
tests/testthat/test_http_validation_error.R
tests/testthat/test_measure.R
tests/testthat/test_order_by_column.R
tests/testthat/test_s3_permissions_request.R
tests/testthat/test_validation_error.R
tests/testthat/test_validation_error_loc_inner.R
1 change: 1 addition & 0 deletions .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7.8.0
18 changes: 18 additions & 0 deletions .travis.yml
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
15 changes: 15 additions & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Package: laminr.api
Title: R Package Client for FastAPI
Version: 1.0.0
Author: person("OpenAPI Generator community", email = "[email protected]", role = c("aut", "cre"))
Maintainer: OpenAPI Generator community <[email protected]>
Description: No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
URL: https://github.com/data-intuitive/laminr.api
BugReports: https://github.com/data-intuitive/laminr.api/issues
Depends: R (>= 3.3)
Encoding: UTF-8
License: Unlicense
LazyData: true
Suggests: testthat
Imports: jsonlite, httr, R6, base64enc, stringr
RoxygenNote: 7.2.1
29 changes: 29 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# 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(Dimension)
export(GetRecordRequestBody)
export(GetRecordsRequestBody)
export(GetValuesRequestBody)
export(GroupByRequestBody)
export(HTTPValidationError)
export(Measure)
export(OrderByColumn)
export(S3PermissionsRequest)
export(ValidationError)
export(ValidationErrorLocInner)

# APIs
export(DefaultApi)
Loading

0 comments on commit 73f19b1

Please sign in to comment.