diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f4c9eaf6..221011c1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -55,29 +55,33 @@ jobs: # - emit-bindings: If 'true', emit bindings. In principle, we choose # only one stable Rust toolchain per combination of a platform and # an R version (e.g. Windows and R-release) to emit bindings. - - {os: windows-latest, r: 'release', rust-version: 'stable-msvc', target: 'x86_64-pc-windows-gnu', emit-bindings: 'true'} - - {os: windows-latest, r: 'release', rust-version: 'nightly-msvc', target: 'x86_64-pc-windows-gnu'} - - {os: windows-latest, r: 'devel', rust-version: 'stable-msvc', target: 'x86_64-pc-windows-gnu', emit-bindings: 'true'} - - {os: windows-latest, r: 'release', rust-version: 'stable-gnu', target: 'x86_64-pc-windows-gnu'} - - {os: windows-latest, r: 'oldrel', rust-version: 'stable-msvc', target: 'x86_64-pc-windows-gnu', emit-bindings: 'true'} - - - {os: macOS-latest, r: 'release', rust-version: 'nightly'} - - {os: macOS-latest, r: 'devel', rust-version: 'stable', emit-bindings: 'true'} - - {os: macOS-latest, r: 'oldrel', rust-version: 'stable', emit-bindings: 'true'} - - {os: macOS-latest, r: 'release', rust-version: 'stable', emit-bindings: 'true'} - - {os: macOS-latest, r: 'release', rust-version: 'stable', target: 'x86_64-apple-darwin', skip-tests: 'true', emit-bindings: 'true'} - - - - {os: ubuntu-latest, r: 'release', rust-version: 'nightly'} - - {os: ubuntu-latest, r: 'release', rust-version: 'stable', emit-bindings: 'true'} - - {os: ubuntu-latest, r: 'release', rust-version: 'stable', target: 'aarch64-unknown-linux-gnu', skip-tests: 'true', emit-bindings: 'true'} - - - {os: ubuntu-latest, r: 'devel', rust-version: 'stable', emit-bindings: 'true'} - - {os: ubuntu-latest, r: 'devel', rust-version: 'stable', target: 'aarch64-unknown-linux-gnu', skip-tests: 'true', emit-bindings: 'true'} - - - {os: ubuntu-latest, r: 'oldrel', rust-version: 'stable', emit-bindings: 'true'} - - {os: ubuntu-latest, r: 'oldrel', rust-version: 'stable', target: 'aarch64-unknown-linux-gnu', skip-tests: 'true', emit-bindings: 'true'} - + # - {os: windows-latest, r: 'release', rust-version: 'stable-msvc', target: 'x86_64-pc-windows-gnu', emit-bindings: 'true'} + # - {os: windows-latest, r: 'release', rust-version: 'nightly-msvc', target: 'x86_64-pc-windows-gnu'} + # - {os: windows-latest, r: 'devel', rust-version: 'stable-msvc', target: 'x86_64-pc-windows-gnu', emit-bindings: 'true'} + # - {os: windows-latest, r: 'release', rust-version: 'stable-gnu', target: 'x86_64-pc-windows-gnu'} + # - {os: windows-latest, r: 'oldrel', rust-version: 'stable-msvc', target: 'x86_64-pc-windows-gnu', emit-bindings: 'true'} + # - {os: windows-latest, r: '4.2', rust-version: 'stable-msvc', target: 'x86_64-pc-windows-gnu', emit-bindings: 'true' } + + # - {os: macOS-latest, r: 'release', rust-version: 'nightly'} + # - {os: macOS-latest, r: 'devel', rust-version: 'stable', emit-bindings: 'true'} + # - {os: macOS-latest, r: 'oldrel', rust-version: 'stable', emit-bindings: 'true'} + # - {os: macOS-latest, r: 'release', rust-version: 'stable', emit-bindings: 'true'} + # - {os: macOS-latest, r: 'release', rust-version: 'stable', target: 'x86_64-apple-darwin', skip-tests: 'true', emit-bindings: 'true'} + # - {os: macOS-latest, r: '4.2', rust-version: 'stable', emit-bindings: 'true' } + # - {os: macOS-latest, r: '4.2', rust-version: 'stable', target: 'x86_64-apple-darwin', skip-tests: 'true', emit-bindings: 'true'} + + # - {os: ubuntu-latest, r: 'release', rust-version: 'nightly'} + # - {os: ubuntu-latest, r: 'release', rust-version: 'stable', emit-bindings: 'true'} + # - {os: ubuntu-latest, r: 'release', rust-version: 'stable', target: 'aarch64-unknown-linux-gnu', skip-tests: 'true', emit-bindings: 'true'} + + # - {os: ubuntu-latest, r: 'devel', rust-version: 'stable', emit-bindings: 'true'} + # - {os: ubuntu-latest, r: 'devel', rust-version: 'stable', target: 'aarch64-unknown-linux-gnu', skip-tests: 'true', emit-bindings: 'true'} + + # - {os: ubuntu-latest, r: 'oldrel', rust-version: 'stable', emit-bindings: 'true'} + # - {os: ubuntu-latest, r: 'oldrel', rust-version: 'stable', target: 'aarch64-unknown-linux-gnu', skip-tests: 'true', emit-bindings: 'true'} + + - {os: ubuntu-latest, r: '4.2', rust-version: 'stable', emit-bindings: 'true' } + # - {os: ubuntu-latest, r: '4.2', rust-version: 'stable', target: 'aarch64-unknown-linux-gnu', skip-tests: 'true', emit-bindings: 'true'} env: RSPM: ${{ matrix.config.rspm }} @@ -248,11 +252,10 @@ jobs: runs-on: ubuntu-latest outputs: head_commit_message: ${{ steps.get_head_commit_message.outputs.HEAD_COMMIT_MESSAGE }} - # generate_bindings: ${{ contains(steps.get_head_commit_message.outputs.HEAD_COMMIT_MESSAGE, '[generate bindings]') }} steps: - uses: actions/checkout@v4 with: - ref: ${{ github.event.pull_request.head.ref }} + ref: ${{ github.event.pull_request.head.sha }} - name: Get Head Commit Message id: get_head_commit_message run: echo "HEAD_COMMIT_MESSAGE=$(git show -s --format=%s)" >> "$GITHUB_OUTPUT" @@ -261,15 +264,19 @@ jobs: echo "${{ steps.get_head_commit_message.outputs.HEAD_COMMIT_MESSAGE }}" echo "${{ contains(steps.get_head_commit_message.outputs.HEAD_COMMIT_MESSAGE, '[generate bindings]') }}" - pr_generated_bindings: - name: Make PR with generated bindings + commit_generated_bindings_to_pr: + name: Commit generated bindings to PR needs: [test_with_bindgen, check_generate_bindings_flag] if: ${{ contains(needs.check_generate_bindings_flag.outputs.head_commit_message, '[generate bindings]') }} runs-on: ubuntu-latest + permissions: + contents: write steps: - uses: actions/checkout@v4 with: + fetch-depth: 0 ref: ${{ github.event.pull_request.head.ref }} + repository: ${{ github.event.pull_request.head.repo.full_name }} - uses: actions/download-artifact@v4 - name: Update bindings @@ -292,6 +299,8 @@ jobs: git commit -m "Update bindings [skip ci]" - name: Push to PR branch run: git push + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Gather the generated bindings and push them to generated_bindings branch. # If we need to update the bindings, create a pull request from that branch. diff --git a/bindings/bindings-linux-aarch64-R4.5-devel.rs b/bindings/bindings-linux-aarch64-R4.5-devel.rs index 26fa35f1..a467c145 100644 --- a/bindings/bindings-linux-aarch64-R4.5-devel.rs +++ b/bindings/bindings-linux-aarch64-R4.5-devel.rs @@ -135,9 +135,9 @@ pub const R_MAJOR: &[u8; 2] = b"4\0"; pub const R_MINOR: &[u8; 4] = b"5.0\0"; pub const R_STATUS: &[u8; 29] = b"Under development (unstable)\0"; pub const R_YEAR: &[u8; 5] = b"2024\0"; -pub const R_MONTH: &[u8; 3] = b"05\0"; -pub const R_DAY: &[u8; 3] = b"08\0"; -pub const R_SVN_REVISION: u32 = 86528; +pub const R_MONTH: &[u8; 3] = b"06\0"; +pub const R_DAY: &[u8; 3] = b"11\0"; +pub const R_SVN_REVISION: u32 = 86723; pub const R_GE_definitions: u32 = 13; pub const R_GE_deviceClip: u32 = 14; pub const R_GE_group: u32 = 15; @@ -1359,6 +1359,8 @@ extern "C" { pub fn Rf_isEnvironment(s: SEXP) -> Rboolean; pub fn Rf_isString(s: SEXP) -> Rboolean; pub fn Rf_isObject(s: SEXP) -> Rboolean; + pub fn MAYBE_SHARED(x: SEXP) -> ::std::os::raw::c_int; + pub fn NO_REFERENCES(x: SEXP) -> ::std::os::raw::c_int; #[doc = "General Cons Cell Attributes"] pub fn ATTRIB(x: SEXP) -> SEXP; pub fn OBJECT(x: SEXP) -> ::std::os::raw::c_int; @@ -1393,6 +1395,7 @@ extern "C" { pub fn SET_VECTOR_ELT(x: SEXP, i: R_xlen_t, v: SEXP) -> SEXP; pub fn STRING_PTR(x: SEXP) -> *mut SEXP; pub fn STRING_PTR_RO(x: SEXP) -> *const SEXP; + pub fn VECTOR_PTR_RO(x: SEXP) -> *const SEXP; pub fn INTEGER_GET_REGION( sx: SEXP, i: R_xlen_t, @@ -1449,6 +1452,10 @@ extern "C" { pub fn SET_FORMALS(x: SEXP, v: SEXP); pub fn SET_BODY(x: SEXP, v: SEXP); pub fn SET_CLOENV(x: SEXP, v: SEXP); + pub fn R_mkClosure(arg1: SEXP, arg2: SEXP, arg3: SEXP) -> SEXP; + pub fn R_ClosureFormals(arg1: SEXP) -> SEXP; + pub fn R_ClosureBody(arg1: SEXP) -> SEXP; + pub fn R_ClosureEnv(arg1: SEXP) -> SEXP; #[doc = "Symbol Access Functions"] pub fn PRINTNAME(x: SEXP) -> SEXP; pub fn SYMVALUE(x: SEXP) -> SEXP; @@ -1459,6 +1466,7 @@ extern "C" { pub fn ENCLOS(x: SEXP) -> SEXP; pub fn HASHTAB(x: SEXP) -> SEXP; pub fn ENVFLAGS(x: SEXP) -> ::std::os::raw::c_int; + pub fn R_ParentEnv(arg1: SEXP) -> SEXP; #[doc = "Promise Access Functions"] pub fn PRCODE(x: SEXP) -> SEXP; pub fn PRENV(x: SEXP) -> SEXP; @@ -1603,6 +1611,7 @@ extern "C" { arg2: ::std::os::raw::c_int, arg3: ::std::os::raw::c_int, ) -> SEXP; + pub fn Rf_allocLang(arg1: ::std::os::raw::c_int) -> SEXP; pub fn Rf_allocList(arg1: ::std::os::raw::c_int) -> SEXP; pub fn Rf_allocS4Object() -> SEXP; pub fn Rf_allocSExp(arg1: SEXPTYPE) -> SEXP; @@ -1712,12 +1721,6 @@ extern "C" { ce_out: cetype_t, subst: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_char; - pub fn Rf_reEnc3( - x: *const ::std::os::raw::c_char, - fromcode: *const ::std::os::raw::c_char, - tocode: *const ::std::os::raw::c_char, - subst: ::std::os::raw::c_int, - ) -> *const ::std::os::raw::c_char; #[doc = "Calling a function with arguments evaluated"] pub fn R_forceAndCall(e: SEXP, n: ::std::os::raw::c_int, rho: SEXP) -> SEXP; #[doc = "External pointer interface"] @@ -1876,7 +1879,6 @@ extern "C" { ); pub fn R_Serialize(s: SEXP, ops: R_outpstream_t); pub fn R_Unserialize(ips: R_inpstream_t) -> SEXP; - pub fn R_SerializeInfo(ips: R_inpstream_t) -> SEXP; #[doc = "slot management (in attrib.c)"] pub fn R_do_slot(obj: SEXP, name: SEXP) -> SEXP; pub fn R_do_slot_assign(obj: SEXP, name: SEXP, value: SEXP) -> SEXP; @@ -1907,7 +1909,6 @@ extern "C" { pub fn R_NewPreciousMSet(arg1: ::std::os::raw::c_int) -> SEXP; pub fn R_PreserveInMSet(x: SEXP, mset: SEXP); pub fn R_ReleaseFromMSet(x: SEXP, mset: SEXP); - pub fn R_ReleaseMSet(mset: SEXP, keepSize: ::std::os::raw::c_int); #[doc = "Shutdown actions"] pub fn R_dot_Last(); pub fn R_RunExitFinalizers(); @@ -1936,6 +1937,7 @@ extern "C" { pub fn Rf_elt(arg1: SEXP, arg2: ::std::os::raw::c_int) -> SEXP; pub fn Rf_inherits(arg1: SEXP, arg2: *const ::std::os::raw::c_char) -> Rboolean; pub fn Rf_isArray(arg1: SEXP) -> Rboolean; + pub fn Rf_isDataFrame(arg1: SEXP) -> Rboolean; pub fn Rf_isFactor(arg1: SEXP) -> Rboolean; pub fn Rf_isFrame(arg1: SEXP) -> Rboolean; pub fn Rf_isFunction(arg1: SEXP) -> Rboolean; diff --git a/bindings/bindings-linux-x86_64-R4.5-devel.rs b/bindings/bindings-linux-x86_64-R4.5-devel.rs index 29bd14aa..c2349f22 100644 --- a/bindings/bindings-linux-x86_64-R4.5-devel.rs +++ b/bindings/bindings-linux-x86_64-R4.5-devel.rs @@ -135,9 +135,9 @@ pub const R_MAJOR: &[u8; 2] = b"4\0"; pub const R_MINOR: &[u8; 4] = b"5.0\0"; pub const R_STATUS: &[u8; 29] = b"Under development (unstable)\0"; pub const R_YEAR: &[u8; 5] = b"2024\0"; -pub const R_MONTH: &[u8; 3] = b"05\0"; -pub const R_DAY: &[u8; 3] = b"08\0"; -pub const R_SVN_REVISION: u32 = 86528; +pub const R_MONTH: &[u8; 3] = b"06\0"; +pub const R_DAY: &[u8; 3] = b"12\0"; +pub const R_SVN_REVISION: u32 = 86726; pub const R_GE_definitions: u32 = 13; pub const R_GE_deviceClip: u32 = 14; pub const R_GE_group: u32 = 15; @@ -1368,6 +1368,8 @@ extern "C" { pub fn Rf_isEnvironment(s: SEXP) -> Rboolean; pub fn Rf_isString(s: SEXP) -> Rboolean; pub fn Rf_isObject(s: SEXP) -> Rboolean; + pub fn MAYBE_SHARED(x: SEXP) -> ::std::os::raw::c_int; + pub fn NO_REFERENCES(x: SEXP) -> ::std::os::raw::c_int; #[doc = "General Cons Cell Attributes"] pub fn ATTRIB(x: SEXP) -> SEXP; pub fn OBJECT(x: SEXP) -> ::std::os::raw::c_int; @@ -1402,6 +1404,7 @@ extern "C" { pub fn SET_VECTOR_ELT(x: SEXP, i: R_xlen_t, v: SEXP) -> SEXP; pub fn STRING_PTR(x: SEXP) -> *mut SEXP; pub fn STRING_PTR_RO(x: SEXP) -> *const SEXP; + pub fn VECTOR_PTR_RO(x: SEXP) -> *const SEXP; pub fn INTEGER_GET_REGION( sx: SEXP, i: R_xlen_t, @@ -1458,6 +1461,10 @@ extern "C" { pub fn SET_FORMALS(x: SEXP, v: SEXP); pub fn SET_BODY(x: SEXP, v: SEXP); pub fn SET_CLOENV(x: SEXP, v: SEXP); + pub fn R_mkClosure(arg1: SEXP, arg2: SEXP, arg3: SEXP) -> SEXP; + pub fn R_ClosureFormals(arg1: SEXP) -> SEXP; + pub fn R_ClosureBody(arg1: SEXP) -> SEXP; + pub fn R_ClosureEnv(arg1: SEXP) -> SEXP; #[doc = "Symbol Access Functions"] pub fn PRINTNAME(x: SEXP) -> SEXP; pub fn SYMVALUE(x: SEXP) -> SEXP; @@ -1468,6 +1475,7 @@ extern "C" { pub fn ENCLOS(x: SEXP) -> SEXP; pub fn HASHTAB(x: SEXP) -> SEXP; pub fn ENVFLAGS(x: SEXP) -> ::std::os::raw::c_int; + pub fn R_ParentEnv(arg1: SEXP) -> SEXP; #[doc = "Promise Access Functions"] pub fn PRCODE(x: SEXP) -> SEXP; pub fn PRENV(x: SEXP) -> SEXP; @@ -1612,6 +1620,7 @@ extern "C" { arg2: ::std::os::raw::c_int, arg3: ::std::os::raw::c_int, ) -> SEXP; + pub fn Rf_allocLang(arg1: ::std::os::raw::c_int) -> SEXP; pub fn Rf_allocList(arg1: ::std::os::raw::c_int) -> SEXP; pub fn Rf_allocS4Object() -> SEXP; pub fn Rf_allocSExp(arg1: SEXPTYPE) -> SEXP; @@ -1721,12 +1730,6 @@ extern "C" { ce_out: cetype_t, subst: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_char; - pub fn Rf_reEnc3( - x: *const ::std::os::raw::c_char, - fromcode: *const ::std::os::raw::c_char, - tocode: *const ::std::os::raw::c_char, - subst: ::std::os::raw::c_int, - ) -> *const ::std::os::raw::c_char; #[doc = "Calling a function with arguments evaluated"] pub fn R_forceAndCall(e: SEXP, n: ::std::os::raw::c_int, rho: SEXP) -> SEXP; #[doc = "External pointer interface"] @@ -1885,7 +1888,6 @@ extern "C" { ); pub fn R_Serialize(s: SEXP, ops: R_outpstream_t); pub fn R_Unserialize(ips: R_inpstream_t) -> SEXP; - pub fn R_SerializeInfo(ips: R_inpstream_t) -> SEXP; #[doc = "slot management (in attrib.c)"] pub fn R_do_slot(obj: SEXP, name: SEXP) -> SEXP; pub fn R_do_slot_assign(obj: SEXP, name: SEXP, value: SEXP) -> SEXP; @@ -1916,7 +1918,6 @@ extern "C" { pub fn R_NewPreciousMSet(arg1: ::std::os::raw::c_int) -> SEXP; pub fn R_PreserveInMSet(x: SEXP, mset: SEXP); pub fn R_ReleaseFromMSet(x: SEXP, mset: SEXP); - pub fn R_ReleaseMSet(mset: SEXP, keepSize: ::std::os::raw::c_int); #[doc = "Shutdown actions"] pub fn R_dot_Last(); pub fn R_RunExitFinalizers(); @@ -1945,6 +1946,7 @@ extern "C" { pub fn Rf_elt(arg1: SEXP, arg2: ::std::os::raw::c_int) -> SEXP; pub fn Rf_inherits(arg1: SEXP, arg2: *const ::std::os::raw::c_char) -> Rboolean; pub fn Rf_isArray(arg1: SEXP) -> Rboolean; + pub fn Rf_isDataFrame(arg1: SEXP) -> Rboolean; pub fn Rf_isFactor(arg1: SEXP) -> Rboolean; pub fn Rf_isFrame(arg1: SEXP) -> Rboolean; pub fn Rf_isFunction(arg1: SEXP) -> Rboolean; diff --git a/bindings/bindings-macos-aarch64-R4.3.rs b/bindings/bindings-macos-aarch64-R4.3.rs index 8589198c..16bdc5a2 100644 --- a/bindings/bindings-macos-aarch64-R4.3.rs +++ b/bindings/bindings-macos-aarch64-R4.3.rs @@ -1,7 +1,7 @@ /* automatically generated by rust-bindgen 0.69.4 */ /* libR-sys version: 0.7.0 */ -/* bindgen clang version: Homebrew clang version 17.0.6 */ +/* bindgen clang version: Homebrew clang version 18.1.7 */ /* r version: 4.3.3 */ #[repr(C)] diff --git a/bindings/bindings-macos-aarch64-R4.4.rs b/bindings/bindings-macos-aarch64-R4.4.rs index cd066d21..630c4a9a 100644 --- a/bindings/bindings-macos-aarch64-R4.4.rs +++ b/bindings/bindings-macos-aarch64-R4.4.rs @@ -1,7 +1,7 @@ /* automatically generated by rust-bindgen 0.69.4 */ /* libR-sys version: 0.7.0 */ -/* bindgen clang version: Homebrew clang version 17.0.6 */ +/* bindgen clang version: Homebrew clang version 18.1.7 */ /* r version: 4.4.0 */ #[repr(C)] diff --git a/bindings/bindings-macos-aarch64-R4.5-devel.rs b/bindings/bindings-macos-aarch64-R4.5-devel.rs index a2c4eb8e..79955ddc 100644 --- a/bindings/bindings-macos-aarch64-R4.5-devel.rs +++ b/bindings/bindings-macos-aarch64-R4.5-devel.rs @@ -1,7 +1,7 @@ /* automatically generated by rust-bindgen 0.69.4 */ /* libR-sys version: 0.7.0 */ -/* bindgen clang version: Homebrew clang version 17.0.6 */ +/* bindgen clang version: Homebrew clang version 18.1.7 */ /* r version: 4.5.0-devel */ #[repr(C)] @@ -136,9 +136,9 @@ pub const R_MAJOR: &[u8; 2] = b"4\0"; pub const R_MINOR: &[u8; 4] = b"5.0\0"; pub const R_STATUS: &[u8; 29] = b"Under development (unstable)\0"; pub const R_YEAR: &[u8; 5] = b"2024\0"; -pub const R_MONTH: &[u8; 3] = b"05\0"; -pub const R_DAY: &[u8; 3] = b"04\0"; -pub const R_SVN_REVISION: u32 = 86521; +pub const R_MONTH: &[u8; 3] = b"06\0"; +pub const R_DAY: &[u8; 3] = b"12\0"; +pub const R_SVN_REVISION: u32 = 86726; pub const R_GE_definitions: u32 = 13; pub const R_GE_deviceClip: u32 = 14; pub const R_GE_group: u32 = 15; @@ -1369,6 +1369,8 @@ extern "C" { pub fn Rf_isEnvironment(s: SEXP) -> Rboolean; pub fn Rf_isString(s: SEXP) -> Rboolean; pub fn Rf_isObject(s: SEXP) -> Rboolean; + pub fn MAYBE_SHARED(x: SEXP) -> ::std::os::raw::c_int; + pub fn NO_REFERENCES(x: SEXP) -> ::std::os::raw::c_int; #[doc = "General Cons Cell Attributes"] pub fn ATTRIB(x: SEXP) -> SEXP; pub fn OBJECT(x: SEXP) -> ::std::os::raw::c_int; @@ -1403,6 +1405,7 @@ extern "C" { pub fn SET_VECTOR_ELT(x: SEXP, i: R_xlen_t, v: SEXP) -> SEXP; pub fn STRING_PTR(x: SEXP) -> *mut SEXP; pub fn STRING_PTR_RO(x: SEXP) -> *const SEXP; + pub fn VECTOR_PTR_RO(x: SEXP) -> *const SEXP; pub fn INTEGER_GET_REGION( sx: SEXP, i: R_xlen_t, @@ -1459,6 +1462,10 @@ extern "C" { pub fn SET_FORMALS(x: SEXP, v: SEXP); pub fn SET_BODY(x: SEXP, v: SEXP); pub fn SET_CLOENV(x: SEXP, v: SEXP); + pub fn R_mkClosure(arg1: SEXP, arg2: SEXP, arg3: SEXP) -> SEXP; + pub fn R_ClosureFormals(arg1: SEXP) -> SEXP; + pub fn R_ClosureBody(arg1: SEXP) -> SEXP; + pub fn R_ClosureEnv(arg1: SEXP) -> SEXP; #[doc = "Symbol Access Functions"] pub fn PRINTNAME(x: SEXP) -> SEXP; pub fn SYMVALUE(x: SEXP) -> SEXP; @@ -1469,6 +1476,7 @@ extern "C" { pub fn ENCLOS(x: SEXP) -> SEXP; pub fn HASHTAB(x: SEXP) -> SEXP; pub fn ENVFLAGS(x: SEXP) -> ::std::os::raw::c_int; + pub fn R_ParentEnv(arg1: SEXP) -> SEXP; #[doc = "Promise Access Functions"] pub fn PRCODE(x: SEXP) -> SEXP; pub fn PRENV(x: SEXP) -> SEXP; @@ -1613,6 +1621,7 @@ extern "C" { arg2: ::std::os::raw::c_int, arg3: ::std::os::raw::c_int, ) -> SEXP; + pub fn Rf_allocLang(arg1: ::std::os::raw::c_int) -> SEXP; pub fn Rf_allocList(arg1: ::std::os::raw::c_int) -> SEXP; pub fn Rf_allocS4Object() -> SEXP; pub fn Rf_allocSExp(arg1: SEXPTYPE) -> SEXP; @@ -1722,12 +1731,6 @@ extern "C" { ce_out: cetype_t, subst: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_char; - pub fn Rf_reEnc3( - x: *const ::std::os::raw::c_char, - fromcode: *const ::std::os::raw::c_char, - tocode: *const ::std::os::raw::c_char, - subst: ::std::os::raw::c_int, - ) -> *const ::std::os::raw::c_char; #[doc = "Calling a function with arguments evaluated"] pub fn R_forceAndCall(e: SEXP, n: ::std::os::raw::c_int, rho: SEXP) -> SEXP; #[doc = "External pointer interface"] @@ -1886,7 +1889,6 @@ extern "C" { ); pub fn R_Serialize(s: SEXP, ops: R_outpstream_t); pub fn R_Unserialize(ips: R_inpstream_t) -> SEXP; - pub fn R_SerializeInfo(ips: R_inpstream_t) -> SEXP; #[doc = "slot management (in attrib.c)"] pub fn R_do_slot(obj: SEXP, name: SEXP) -> SEXP; pub fn R_do_slot_assign(obj: SEXP, name: SEXP, value: SEXP) -> SEXP; @@ -1917,7 +1919,6 @@ extern "C" { pub fn R_NewPreciousMSet(arg1: ::std::os::raw::c_int) -> SEXP; pub fn R_PreserveInMSet(x: SEXP, mset: SEXP); pub fn R_ReleaseFromMSet(x: SEXP, mset: SEXP); - pub fn R_ReleaseMSet(mset: SEXP, keepSize: ::std::os::raw::c_int); #[doc = "Shutdown actions"] pub fn R_dot_Last(); pub fn R_RunExitFinalizers(); @@ -1946,6 +1947,7 @@ extern "C" { pub fn Rf_elt(arg1: SEXP, arg2: ::std::os::raw::c_int) -> SEXP; pub fn Rf_inherits(arg1: SEXP, arg2: *const ::std::os::raw::c_char) -> Rboolean; pub fn Rf_isArray(arg1: SEXP) -> Rboolean; + pub fn Rf_isDataFrame(arg1: SEXP) -> Rboolean; pub fn Rf_isFactor(arg1: SEXP) -> Rboolean; pub fn Rf_isFrame(arg1: SEXP) -> Rboolean; pub fn Rf_isFunction(arg1: SEXP) -> Rboolean; diff --git a/bindings/bindings-macos-x86_64-R4.4.rs b/bindings/bindings-macos-x86_64-R4.4.rs index ded7417d..aa962543 100644 --- a/bindings/bindings-macos-x86_64-R4.4.rs +++ b/bindings/bindings-macos-x86_64-R4.4.rs @@ -1,7 +1,7 @@ /* automatically generated by rust-bindgen 0.69.4 */ /* libR-sys version: 0.7.0 */ -/* bindgen clang version: Homebrew clang version 17.0.6 */ +/* bindgen clang version: Homebrew clang version 18.1.7 */ /* r version: 4.4.0 */ #[repr(C)] diff --git a/bindings/bindings-windows-x86_64-R4.3.rs b/bindings/bindings-windows-x86_64-R4.3.rs index ff9fe19b..bbe2df45 100644 --- a/bindings/bindings-windows-x86_64-R4.3.rs +++ b/bindings/bindings-windows-x86_64-R4.3.rs @@ -1,7 +1,7 @@ /* automatically generated by rust-bindgen 0.69.4 */ /* libR-sys version: 0.7.0 */ -/* bindgen clang version: clang version 16.0.6 */ +/* bindgen clang version: clang version 18.1.6 */ /* r version: 4.3.3 */ pub const SINGLESXP: u32 = 302; @@ -1888,6 +1888,7 @@ extern "C" { pub fn unif_rand() -> f64; pub fn R_unif_index(arg1: f64) -> f64; pub fn exp_rand() -> f64; + #[doc = "Normal Distribution"] pub fn Rf_dnorm4(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pnorm5( arg1: f64, @@ -1911,6 +1912,7 @@ extern "C" { arg4: ::std::os::raw::c_int, arg5: ::std::os::raw::c_int, ); + #[doc = "Uniform Distribution"] pub fn Rf_dunif(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_punif( arg1: f64, @@ -1927,6 +1929,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_runif(arg1: f64, arg2: f64) -> f64; + #[doc = "Gamma Distribution"] pub fn Rf_dgamma(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pgamma( arg1: f64, @@ -1947,9 +1950,11 @@ extern "C" { pub fn Rf_log1pexp(arg1: f64) -> f64; pub fn Rf_log1mexp(arg1: f64) -> f64; pub fn Rf_lgamma1p(arg1: f64) -> f64; + #[doc = "Compute the log of a sum or difference from logs of terms, i.e.,\n\n log (exp (logx) + exp (logy))\n or log (exp (logx) - exp (logy))\n\n without causing overflows or throwing away too much accuracy:"] pub fn Rf_logspace_add(arg1: f64, arg2: f64) -> f64; pub fn Rf_logspace_sub(arg1: f64, arg2: f64) -> f64; pub fn Rf_logspace_sum(arg1: *const f64, arg2: ::std::os::raw::c_int) -> f64; + #[doc = "Beta Distribution"] pub fn Rf_dbeta(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pbeta( arg1: f64, @@ -1966,6 +1971,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rbeta(arg1: f64, arg2: f64) -> f64; + #[doc = "Lognormal Distribution"] pub fn Rf_dlnorm(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_plnorm( arg1: f64, @@ -1982,6 +1988,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rlnorm(arg1: f64, arg2: f64) -> f64; + #[doc = "Chi-squared Distribution"] pub fn Rf_dchisq(arg1: f64, arg2: f64, arg3: ::std::os::raw::c_int) -> f64; pub fn Rf_pchisq( arg1: f64, @@ -1996,6 +2003,7 @@ extern "C" { arg4: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rchisq(arg1: f64) -> f64; + #[doc = "Non-central Chi-squared Distribution"] pub fn Rf_dnchisq(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pnchisq( arg1: f64, @@ -2012,6 +2020,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rnchisq(arg1: f64, arg2: f64) -> f64; + #[doc = "F Distribution"] pub fn Rf_df(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pf( arg1: f64, @@ -2028,6 +2037,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rf(arg1: f64, arg2: f64) -> f64; + #[doc = "Student t Distribution"] pub fn Rf_dt(arg1: f64, arg2: f64, arg3: ::std::os::raw::c_int) -> f64; pub fn Rf_pt( arg1: f64, @@ -2042,6 +2052,7 @@ extern "C" { arg4: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rt(arg1: f64) -> f64; + #[doc = "Binomial Distribution"] pub fn Rf_dbinom_raw(x: f64, n: f64, p: f64, q: f64, give_log: ::std::os::raw::c_int) -> f64; pub fn Rf_dbinom(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pbinom( @@ -2059,12 +2070,14 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rbinom(arg1: f64, arg2: f64) -> f64; + #[doc = "Multinomial Distribution"] pub fn Rf_rmultinom( arg1: ::std::os::raw::c_int, arg2: *mut f64, arg3: ::std::os::raw::c_int, arg4: *mut ::std::os::raw::c_int, ); + #[doc = "Cauchy Distribution"] pub fn Rf_dcauchy(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pcauchy( arg1: f64, @@ -2081,6 +2094,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rcauchy(arg1: f64, arg2: f64) -> f64; + #[doc = "Exponential Distribution"] pub fn Rf_dexp(arg1: f64, arg2: f64, arg3: ::std::os::raw::c_int) -> f64; pub fn Rf_pexp( arg1: f64, @@ -2095,6 +2109,7 @@ extern "C" { arg4: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rexp(arg1: f64) -> f64; + #[doc = "Geometric Distribution"] pub fn Rf_dgeom(arg1: f64, arg2: f64, arg3: ::std::os::raw::c_int) -> f64; pub fn Rf_pgeom( arg1: f64, @@ -2109,6 +2124,7 @@ extern "C" { arg4: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rgeom(arg1: f64) -> f64; + #[doc = "Hypergeometric Distribution"] pub fn Rf_dhyper( arg1: f64, arg2: f64, @@ -2133,6 +2149,7 @@ extern "C" { arg6: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rhyper(arg1: f64, arg2: f64, arg3: f64) -> f64; + #[doc = "Negative Binomial Distribution"] pub fn Rf_dnbinom(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pnbinom( arg1: f64, @@ -2165,6 +2182,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rnbinom_mu(arg1: f64, arg2: f64) -> f64; + #[doc = "Poisson Distribution"] pub fn Rf_dpois_raw(arg1: f64, arg2: f64, arg3: ::std::os::raw::c_int) -> f64; pub fn Rf_dpois(arg1: f64, arg2: f64, arg3: ::std::os::raw::c_int) -> f64; pub fn Rf_ppois( @@ -2180,6 +2198,7 @@ extern "C" { arg4: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rpois(arg1: f64) -> f64; + #[doc = "Weibull Distribution"] pub fn Rf_dweibull(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pweibull( arg1: f64, @@ -2196,6 +2215,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rweibull(arg1: f64, arg2: f64) -> f64; + #[doc = "Logistic Distribution"] pub fn Rf_dlogis(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_plogis( arg1: f64, @@ -2212,6 +2232,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rlogis(arg1: f64, arg2: f64) -> f64; + #[doc = "Non-central Beta Distribution"] pub fn Rf_dnbeta( arg1: f64, arg2: f64, @@ -2236,6 +2257,7 @@ extern "C" { arg6: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rnbeta(arg1: f64, arg2: f64, arg3: f64) -> f64; + #[doc = "Non-central F Distribution"] pub fn Rf_dnf(arg1: f64, arg2: f64, arg3: f64, arg4: f64, arg5: ::std::os::raw::c_int) -> f64; pub fn Rf_pnf( arg1: f64, @@ -2253,6 +2275,7 @@ extern "C" { arg5: ::std::os::raw::c_int, arg6: ::std::os::raw::c_int, ) -> f64; + #[doc = "Non-central Student t Distribution"] pub fn Rf_dnt(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pnt( arg1: f64, @@ -2268,6 +2291,7 @@ extern "C" { arg4: ::std::os::raw::c_int, arg5: ::std::os::raw::c_int, ) -> f64; + #[doc = "Studentized Range Distribution"] pub fn Rf_ptukey( arg1: f64, arg2: f64, @@ -2284,6 +2308,7 @@ extern "C" { arg5: ::std::os::raw::c_int, arg6: ::std::os::raw::c_int, ) -> f64; + #[doc = "Wilcoxon Rank Sum Distribution"] pub fn Rf_dwilcox(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pwilcox( arg1: f64, @@ -2301,6 +2326,7 @@ extern "C" { ) -> f64; pub fn Rf_rwilcox(arg1: f64, arg2: f64) -> f64; pub fn wilcox_free(); + #[doc = "Wilcoxon Signed Rank Distribution"] pub fn Rf_dsignrank(arg1: f64, arg2: f64, arg3: ::std::os::raw::c_int) -> f64; pub fn Rf_psignrank( arg1: f64, @@ -2316,6 +2342,7 @@ extern "C" { ) -> f64; pub fn Rf_rsignrank(arg1: f64) -> f64; pub fn signrank_free(); + #[doc = "Gamma and Related Functions"] pub fn Rf_gammafn(arg1: f64) -> f64; pub fn Rf_lgammafn(arg1: f64) -> f64; pub fn Rf_lgammafn_sign(arg1: f64, arg2: *mut ::std::os::raw::c_int) -> f64; @@ -2337,6 +2364,7 @@ extern "C" { pub fn Rf_lbeta(arg1: f64, arg2: f64) -> f64; pub fn Rf_choose(arg1: f64, arg2: f64) -> f64; pub fn Rf_lchoose(arg1: f64, arg2: f64) -> f64; + #[doc = "Bessel Functions"] pub fn Rf_bessel_i(arg1: f64, arg2: f64, arg3: f64) -> f64; pub fn Rf_bessel_j(arg1: f64, arg2: f64) -> f64; pub fn Rf_bessel_k(arg1: f64, arg2: f64, arg3: f64) -> f64; @@ -2345,6 +2373,7 @@ extern "C" { pub fn Rf_bessel_j_ex(arg1: f64, arg2: f64, arg3: *mut f64) -> f64; pub fn Rf_bessel_k_ex(arg1: f64, arg2: f64, arg3: f64, arg4: *mut f64) -> f64; pub fn Rf_bessel_y_ex(arg1: f64, arg2: f64, arg3: *mut f64) -> f64; + #[doc = "General Support Functions"] pub fn Rf_imax2( arg1: ::std::os::raw::c_int, arg2: ::std::os::raw::c_int, @@ -2488,15 +2517,22 @@ extern "C" { pub fn R_set_altlist_Set_elt_method(cls: R_altrep_class_t, fun: R_altlist_Set_elt_method_t); pub fn R_GE_getVersion() -> ::std::os::raw::c_int; pub fn R_GE_checkVersionOrDie(version: ::std::os::raw::c_int); + #[doc = "Properly declared version of devNumber"] pub fn Rf_ndevNumber(arg1: pDevDesc) -> ::std::os::raw::c_int; + #[doc = "How many devices exist ? (>= 1)"] pub fn Rf_NumDevices() -> ::std::os::raw::c_int; #[doc = "Check for an available device slot"] pub fn R_CheckDeviceAvailable(); pub fn R_CheckDeviceAvailableBool() -> Rboolean; + #[doc = "Return the number of the current device."] pub fn Rf_curDevice() -> ::std::os::raw::c_int; + #[doc = "Return the number of the next device."] pub fn Rf_nextDevice(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[doc = "Return the number of the previous device."] pub fn Rf_prevDevice(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[doc = "Make the specified device (specified by number) the current device"] pub fn Rf_selectDevice(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[doc = "Kill device which is identified by number."] pub fn Rf_killDevice(arg1: ::std::os::raw::c_int); pub fn Rf_NoDevices() -> ::std::os::raw::c_int; pub fn Rf_NewFrameConfirm(arg1: pDevDesc); @@ -2514,6 +2550,7 @@ extern "C" { pub static mut R_interrupts_pending: ::std::os::raw::c_int; pub fn Rf_onintr(); pub static mut mbcslocale: Rboolean; + #[doc = "Useful for devices: translates Adobe symbol encoding to UTF-8"] pub fn Rf_AdobeSymbol2utf8( out: *mut ::std::os::raw::c_char, in_: *const ::std::os::raw::c_char, @@ -2531,6 +2568,7 @@ extern "C" { ) -> *const ::std::os::raw::c_char; #[doc = "Translates Unicode point to UTF-8"] pub fn Rf_ucstoutf8(s: *mut ::std::os::raw::c_char, c: ::std::os::raw::c_uint) -> usize; + #[doc = "map DevDesc to enclosing GEDevDesc"] pub fn Rf_desc2GEDesc(dd: pDevDesc) -> pGEDevDesc; pub fn GEdeviceNumber(arg1: pGEDevDesc) -> ::std::os::raw::c_int; pub fn GEgetDevice(arg1: ::std::os::raw::c_int) -> pGEDevDesc; @@ -2560,8 +2598,10 @@ extern "C" { pub fn GEtoDeviceWidth(value: f64, from: GEUnit, dd: pGEDevDesc) -> f64; pub fn GEfromDeviceHeight(value: f64, to: GEUnit, dd: pGEDevDesc) -> f64; pub fn GEtoDeviceHeight(value: f64, from: GEUnit, dd: pGEDevDesc) -> f64; + #[doc = "Convert an element of a R colour specification (which might be a\nnumber or a string) into an internal colour specification."] pub fn Rf_RGBpar(arg1: SEXP, arg2: ::std::os::raw::c_int) -> rcolor; pub fn Rf_RGBpar3(arg1: SEXP, arg2: ::std::os::raw::c_int, arg3: rcolor) -> rcolor; + #[doc = "Convert an internal colour specification to/from a colour name"] pub fn Rf_col2name(col: rcolor) -> *const ::std::os::raw::c_char; #[doc = "Convert either a name or a #RRGGBB\\[AA\\] string to internal.\nBecause people were using it, it also converts \"1\", \"2\" ...\nto a colour in the palette, and \"0\" to transparent white."] pub fn R_GE_str2col(s: *const ::std::os::raw::c_char) -> rcolor; diff --git a/bindings/bindings-windows-x86_64-R4.4.rs b/bindings/bindings-windows-x86_64-R4.4.rs index bd4828dc..4b8e5165 100644 --- a/bindings/bindings-windows-x86_64-R4.4.rs +++ b/bindings/bindings-windows-x86_64-R4.4.rs @@ -1,7 +1,7 @@ /* automatically generated by rust-bindgen 0.69.4 */ /* libR-sys version: 0.7.0 */ -/* bindgen clang version: clang version 16.0.6 */ +/* bindgen clang version: clang version 18.1.6 */ /* r version: 4.4.0 */ pub const SINGLESXP: u32 = 302; @@ -1890,6 +1890,7 @@ extern "C" { pub fn unif_rand() -> f64; pub fn R_unif_index(arg1: f64) -> f64; pub fn exp_rand() -> f64; + #[doc = "Normal Distribution"] pub fn Rf_dnorm4(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pnorm5( arg1: f64, @@ -1913,6 +1914,7 @@ extern "C" { arg4: ::std::os::raw::c_int, arg5: ::std::os::raw::c_int, ); + #[doc = "Uniform Distribution"] pub fn Rf_dunif(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_punif( arg1: f64, @@ -1929,6 +1931,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_runif(arg1: f64, arg2: f64) -> f64; + #[doc = "Gamma Distribution"] pub fn Rf_dgamma(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pgamma( arg1: f64, @@ -1950,9 +1953,11 @@ extern "C" { pub fn Rf_log1mexp(arg1: f64) -> f64; pub fn Rf_lgamma1p(arg1: f64) -> f64; pub fn Rf_pow1p(arg1: f64, arg2: f64) -> f64; + #[doc = "Compute the log of a sum or difference from logs of terms, i.e.,\n\n log (exp (logx) + exp (logy))\n or log (exp (logx) - exp (logy))\n\n without causing overflows or throwing away too much accuracy:"] pub fn Rf_logspace_add(logx: f64, logy: f64) -> f64; pub fn Rf_logspace_sub(logx: f64, logy: f64) -> f64; pub fn Rf_logspace_sum(arg1: *const f64, arg2: ::std::os::raw::c_int) -> f64; + #[doc = "Beta Distribution"] pub fn Rf_dbeta(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pbeta( arg1: f64, @@ -1969,6 +1974,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rbeta(arg1: f64, arg2: f64) -> f64; + #[doc = "Lognormal Distribution"] pub fn Rf_dlnorm(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_plnorm( arg1: f64, @@ -1985,6 +1991,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rlnorm(arg1: f64, arg2: f64) -> f64; + #[doc = "Chi-squared Distribution"] pub fn Rf_dchisq(arg1: f64, arg2: f64, arg3: ::std::os::raw::c_int) -> f64; pub fn Rf_pchisq( arg1: f64, @@ -1999,6 +2006,7 @@ extern "C" { arg4: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rchisq(arg1: f64) -> f64; + #[doc = "Non-central Chi-squared Distribution"] pub fn Rf_dnchisq(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pnchisq( arg1: f64, @@ -2015,6 +2023,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rnchisq(arg1: f64, arg2: f64) -> f64; + #[doc = "F Distribution"] pub fn Rf_df(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pf( arg1: f64, @@ -2031,6 +2040,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rf(arg1: f64, arg2: f64) -> f64; + #[doc = "Student t Distribution"] pub fn Rf_dt(arg1: f64, arg2: f64, arg3: ::std::os::raw::c_int) -> f64; pub fn Rf_pt( arg1: f64, @@ -2045,6 +2055,7 @@ extern "C" { arg4: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rt(arg1: f64) -> f64; + #[doc = "Binomial Distribution"] pub fn Rf_dbinom_raw(x: f64, n: f64, p: f64, q: f64, give_log: ::std::os::raw::c_int) -> f64; pub fn Rf_dbinom(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pbinom( @@ -2062,12 +2073,14 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rbinom(arg1: f64, arg2: f64) -> f64; + #[doc = "Multinomial Distribution"] pub fn Rf_rmultinom( arg1: ::std::os::raw::c_int, arg2: *mut f64, arg3: ::std::os::raw::c_int, arg4: *mut ::std::os::raw::c_int, ); + #[doc = "Cauchy Distribution"] pub fn Rf_dcauchy(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pcauchy( arg1: f64, @@ -2084,6 +2097,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rcauchy(arg1: f64, arg2: f64) -> f64; + #[doc = "Exponential Distribution"] pub fn Rf_dexp(arg1: f64, arg2: f64, arg3: ::std::os::raw::c_int) -> f64; pub fn Rf_pexp( arg1: f64, @@ -2098,6 +2112,7 @@ extern "C" { arg4: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rexp(arg1: f64) -> f64; + #[doc = "Geometric Distribution"] pub fn Rf_dgeom(arg1: f64, arg2: f64, arg3: ::std::os::raw::c_int) -> f64; pub fn Rf_pgeom( arg1: f64, @@ -2112,6 +2127,7 @@ extern "C" { arg4: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rgeom(arg1: f64) -> f64; + #[doc = "Hypergeometric Distribution"] pub fn Rf_dhyper( arg1: f64, arg2: f64, @@ -2136,6 +2152,7 @@ extern "C" { arg6: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rhyper(arg1: f64, arg2: f64, arg3: f64) -> f64; + #[doc = "Negative Binomial Distribution"] pub fn Rf_dnbinom(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pnbinom( arg1: f64, @@ -2168,6 +2185,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rnbinom_mu(arg1: f64, arg2: f64) -> f64; + #[doc = "Poisson Distribution"] pub fn Rf_dpois_raw(arg1: f64, arg2: f64, arg3: ::std::os::raw::c_int) -> f64; pub fn Rf_dpois(arg1: f64, arg2: f64, arg3: ::std::os::raw::c_int) -> f64; pub fn Rf_ppois( @@ -2183,6 +2201,7 @@ extern "C" { arg4: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rpois(arg1: f64) -> f64; + #[doc = "Weibull Distribution"] pub fn Rf_dweibull(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pweibull( arg1: f64, @@ -2199,6 +2218,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rweibull(arg1: f64, arg2: f64) -> f64; + #[doc = "Logistic Distribution"] pub fn Rf_dlogis(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_plogis( arg1: f64, @@ -2215,6 +2235,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rlogis(arg1: f64, arg2: f64) -> f64; + #[doc = "Non-central Beta Distribution"] pub fn Rf_dnbeta( arg1: f64, arg2: f64, @@ -2239,6 +2260,7 @@ extern "C" { arg6: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rnbeta(arg1: f64, arg2: f64, arg3: f64) -> f64; + #[doc = "Non-central F Distribution"] pub fn Rf_dnf(arg1: f64, arg2: f64, arg3: f64, arg4: f64, arg5: ::std::os::raw::c_int) -> f64; pub fn Rf_pnf( arg1: f64, @@ -2256,6 +2278,7 @@ extern "C" { arg5: ::std::os::raw::c_int, arg6: ::std::os::raw::c_int, ) -> f64; + #[doc = "Non-central Student t Distribution"] pub fn Rf_dnt(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pnt( arg1: f64, @@ -2271,6 +2294,7 @@ extern "C" { arg4: ::std::os::raw::c_int, arg5: ::std::os::raw::c_int, ) -> f64; + #[doc = "Studentized Range Distribution"] pub fn Rf_ptukey( arg1: f64, arg2: f64, @@ -2287,6 +2311,7 @@ extern "C" { arg5: ::std::os::raw::c_int, arg6: ::std::os::raw::c_int, ) -> f64; + #[doc = "Wilcoxon Rank Sum Distribution"] pub fn Rf_dwilcox(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pwilcox( arg1: f64, @@ -2304,6 +2329,7 @@ extern "C" { ) -> f64; pub fn Rf_rwilcox(arg1: f64, arg2: f64) -> f64; pub fn wilcox_free(); + #[doc = "Wilcoxon Signed Rank Distribution"] pub fn Rf_dsignrank(arg1: f64, arg2: f64, arg3: ::std::os::raw::c_int) -> f64; pub fn Rf_psignrank( arg1: f64, @@ -2319,6 +2345,7 @@ extern "C" { ) -> f64; pub fn Rf_rsignrank(arg1: f64) -> f64; pub fn signrank_free(); + #[doc = "Gamma and Related Functions"] pub fn Rf_gammafn(arg1: f64) -> f64; pub fn Rf_lgammafn(arg1: f64) -> f64; pub fn Rf_lgammafn_sign(arg1: f64, arg2: *mut ::std::os::raw::c_int) -> f64; @@ -2340,6 +2367,7 @@ extern "C" { pub fn Rf_lbeta(arg1: f64, arg2: f64) -> f64; pub fn Rf_choose(arg1: f64, arg2: f64) -> f64; pub fn Rf_lchoose(arg1: f64, arg2: f64) -> f64; + #[doc = "Bessel Functions"] pub fn Rf_bessel_i(arg1: f64, arg2: f64, arg3: f64) -> f64; pub fn Rf_bessel_j(arg1: f64, arg2: f64) -> f64; pub fn Rf_bessel_k(arg1: f64, arg2: f64, arg3: f64) -> f64; @@ -2348,6 +2376,7 @@ extern "C" { pub fn Rf_bessel_j_ex(arg1: f64, arg2: f64, arg3: *mut f64) -> f64; pub fn Rf_bessel_k_ex(arg1: f64, arg2: f64, arg3: f64, arg4: *mut f64) -> f64; pub fn Rf_bessel_y_ex(arg1: f64, arg2: f64, arg3: *mut f64) -> f64; + #[doc = "General Support Functions"] pub fn Rf_imax2( arg1: ::std::os::raw::c_int, arg2: ::std::os::raw::c_int, @@ -2491,15 +2520,22 @@ extern "C" { pub fn R_set_altlist_Set_elt_method(cls: R_altrep_class_t, fun: R_altlist_Set_elt_method_t); pub fn R_GE_getVersion() -> ::std::os::raw::c_int; pub fn R_GE_checkVersionOrDie(version: ::std::os::raw::c_int); + #[doc = "Properly declared version of devNumber"] pub fn Rf_ndevNumber(arg1: pDevDesc) -> ::std::os::raw::c_int; + #[doc = "How many devices exist ? (>= 1)"] pub fn Rf_NumDevices() -> ::std::os::raw::c_int; #[doc = "Check for an available device slot"] pub fn R_CheckDeviceAvailable(); pub fn R_CheckDeviceAvailableBool() -> Rboolean; + #[doc = "Return the number of the current device."] pub fn Rf_curDevice() -> ::std::os::raw::c_int; + #[doc = "Return the number of the next device."] pub fn Rf_nextDevice(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[doc = "Return the number of the previous device."] pub fn Rf_prevDevice(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[doc = "Make the specified device (specified by number) the current device"] pub fn Rf_selectDevice(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[doc = "Kill device which is identified by number."] pub fn Rf_killDevice(arg1: ::std::os::raw::c_int); pub fn Rf_NoDevices() -> ::std::os::raw::c_int; pub fn Rf_NewFrameConfirm(arg1: pDevDesc); @@ -2517,6 +2553,7 @@ extern "C" { pub static mut R_interrupts_pending: ::std::os::raw::c_int; pub fn Rf_onintr(); pub static mut mbcslocale: Rboolean; + #[doc = "Useful for devices: translates Adobe symbol encoding to UTF-8"] pub fn Rf_AdobeSymbol2utf8( out: *mut ::std::os::raw::c_char, in_: *const ::std::os::raw::c_char, @@ -2534,6 +2571,7 @@ extern "C" { ) -> *const ::std::os::raw::c_char; #[doc = "Translates Unicode point to UTF-8"] pub fn Rf_ucstoutf8(s: *mut ::std::os::raw::c_char, c: ::std::os::raw::c_uint) -> usize; + #[doc = "map DevDesc to enclosing GEDevDesc"] pub fn Rf_desc2GEDesc(dd: pDevDesc) -> pGEDevDesc; pub fn GEdeviceNumber(arg1: pGEDevDesc) -> ::std::os::raw::c_int; pub fn GEgetDevice(arg1: ::std::os::raw::c_int) -> pGEDevDesc; @@ -2563,8 +2601,10 @@ extern "C" { pub fn GEtoDeviceWidth(value: f64, from: GEUnit, dd: pGEDevDesc) -> f64; pub fn GEfromDeviceHeight(value: f64, to: GEUnit, dd: pGEDevDesc) -> f64; pub fn GEtoDeviceHeight(value: f64, from: GEUnit, dd: pGEDevDesc) -> f64; + #[doc = "Convert an element of a R colour specification (which might be a\nnumber or a string) into an internal colour specification."] pub fn Rf_RGBpar(arg1: SEXP, arg2: ::std::os::raw::c_int) -> rcolor; pub fn Rf_RGBpar3(arg1: SEXP, arg2: ::std::os::raw::c_int, arg3: rcolor) -> rcolor; + #[doc = "Convert an internal colour specification to/from a colour name"] pub fn Rf_col2name(col: rcolor) -> *const ::std::os::raw::c_char; #[doc = "Convert either a name or a #RRGGBB\\[AA\\] string to internal.\nBecause people were using it, it also converts \"1\", \"2\" ...\nto a colour in the palette, and \"0\" to transparent white."] pub fn R_GE_str2col(s: *const ::std::os::raw::c_char) -> rcolor; diff --git a/bindings/bindings-windows-x86_64-R4.5-devel.rs b/bindings/bindings-windows-x86_64-R4.5-devel.rs index 0abda463..112614da 100644 --- a/bindings/bindings-windows-x86_64-R4.5-devel.rs +++ b/bindings/bindings-windows-x86_64-R4.5-devel.rs @@ -1,7 +1,7 @@ /* automatically generated by rust-bindgen 0.69.4 */ /* libR-sys version: 0.7.0 */ -/* bindgen clang version: clang version 16.0.6 */ +/* bindgen clang version: clang version 18.1.6 */ /* r version: 4.5.0-devel */ pub const SINGLESXP: u32 = 302; @@ -53,9 +53,9 @@ pub const R_MAJOR: &[u8; 2] = b"4\0"; pub const R_MINOR: &[u8; 4] = b"5.0\0"; pub const R_STATUS: &[u8; 29] = b"Under development (unstable)\0"; pub const R_YEAR: &[u8; 5] = b"2024\0"; -pub const R_MONTH: &[u8; 3] = b"05\0"; -pub const R_DAY: &[u8; 3] = b"10\0"; -pub const R_SVN_REVISION: u32 = 86529; +pub const R_MONTH: &[u8; 3] = b"06\0"; +pub const R_DAY: &[u8; 3] = b"11\0"; +pub const R_SVN_REVISION: u32 = 86723; pub const R_GE_definitions: u32 = 13; pub const R_GE_deviceClip: u32 = 14; pub const R_GE_group: u32 = 15; @@ -1157,6 +1157,8 @@ extern "C" { pub fn Rf_isEnvironment(s: SEXP) -> Rboolean; pub fn Rf_isString(s: SEXP) -> Rboolean; pub fn Rf_isObject(s: SEXP) -> Rboolean; + pub fn MAYBE_SHARED(x: SEXP) -> ::std::os::raw::c_int; + pub fn NO_REFERENCES(x: SEXP) -> ::std::os::raw::c_int; #[doc = "General Cons Cell Attributes"] pub fn ATTRIB(x: SEXP) -> SEXP; pub fn OBJECT(x: SEXP) -> ::std::os::raw::c_int; @@ -1191,6 +1193,7 @@ extern "C" { pub fn SET_VECTOR_ELT(x: SEXP, i: R_xlen_t, v: SEXP) -> SEXP; pub fn STRING_PTR(x: SEXP) -> *mut SEXP; pub fn STRING_PTR_RO(x: SEXP) -> *const SEXP; + pub fn VECTOR_PTR_RO(x: SEXP) -> *const SEXP; pub fn INTEGER_GET_REGION( sx: SEXP, i: R_xlen_t, @@ -1247,6 +1250,10 @@ extern "C" { pub fn SET_FORMALS(x: SEXP, v: SEXP); pub fn SET_BODY(x: SEXP, v: SEXP); pub fn SET_CLOENV(x: SEXP, v: SEXP); + pub fn R_mkClosure(arg1: SEXP, arg2: SEXP, arg3: SEXP) -> SEXP; + pub fn R_ClosureFormals(arg1: SEXP) -> SEXP; + pub fn R_ClosureBody(arg1: SEXP) -> SEXP; + pub fn R_ClosureEnv(arg1: SEXP) -> SEXP; #[doc = "Symbol Access Functions"] pub fn PRINTNAME(x: SEXP) -> SEXP; pub fn SYMVALUE(x: SEXP) -> SEXP; @@ -1257,6 +1264,7 @@ extern "C" { pub fn ENCLOS(x: SEXP) -> SEXP; pub fn HASHTAB(x: SEXP) -> SEXP; pub fn ENVFLAGS(x: SEXP) -> ::std::os::raw::c_int; + pub fn R_ParentEnv(arg1: SEXP) -> SEXP; #[doc = "Promise Access Functions"] pub fn PRCODE(x: SEXP) -> SEXP; pub fn PRENV(x: SEXP) -> SEXP; @@ -1401,6 +1409,7 @@ extern "C" { arg2: ::std::os::raw::c_int, arg3: ::std::os::raw::c_int, ) -> SEXP; + pub fn Rf_allocLang(arg1: ::std::os::raw::c_int) -> SEXP; pub fn Rf_allocList(arg1: ::std::os::raw::c_int) -> SEXP; pub fn Rf_allocS4Object() -> SEXP; pub fn Rf_allocSExp(arg1: SEXPTYPE) -> SEXP; @@ -1510,12 +1519,6 @@ extern "C" { ce_out: cetype_t, subst: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_char; - pub fn Rf_reEnc3( - x: *const ::std::os::raw::c_char, - fromcode: *const ::std::os::raw::c_char, - tocode: *const ::std::os::raw::c_char, - subst: ::std::os::raw::c_int, - ) -> *const ::std::os::raw::c_char; #[doc = "Calling a function with arguments evaluated"] pub fn R_forceAndCall(e: SEXP, n: ::std::os::raw::c_int, rho: SEXP) -> SEXP; #[doc = "External pointer interface"] @@ -1674,7 +1677,6 @@ extern "C" { ); pub fn R_Serialize(s: SEXP, ops: R_outpstream_t); pub fn R_Unserialize(ips: R_inpstream_t) -> SEXP; - pub fn R_SerializeInfo(ips: R_inpstream_t) -> SEXP; #[doc = "slot management (in attrib.c)"] pub fn R_do_slot(obj: SEXP, name: SEXP) -> SEXP; pub fn R_do_slot_assign(obj: SEXP, name: SEXP, value: SEXP) -> SEXP; @@ -1705,7 +1707,6 @@ extern "C" { pub fn R_NewPreciousMSet(arg1: ::std::os::raw::c_int) -> SEXP; pub fn R_PreserveInMSet(x: SEXP, mset: SEXP); pub fn R_ReleaseFromMSet(x: SEXP, mset: SEXP); - pub fn R_ReleaseMSet(mset: SEXP, keepSize: ::std::os::raw::c_int); #[doc = "Shutdown actions"] pub fn R_dot_Last(); pub fn R_RunExitFinalizers(); @@ -1734,6 +1735,7 @@ extern "C" { pub fn Rf_elt(arg1: SEXP, arg2: ::std::os::raw::c_int) -> SEXP; pub fn Rf_inherits(arg1: SEXP, arg2: *const ::std::os::raw::c_char) -> Rboolean; pub fn Rf_isArray(arg1: SEXP) -> Rboolean; + pub fn Rf_isDataFrame(arg1: SEXP) -> Rboolean; pub fn Rf_isFactor(arg1: SEXP) -> Rboolean; pub fn Rf_isFrame(arg1: SEXP) -> Rboolean; pub fn Rf_isFunction(arg1: SEXP) -> Rboolean; @@ -1879,6 +1881,7 @@ extern "C" { pub fn unif_rand() -> f64; pub fn R_unif_index(arg1: f64) -> f64; pub fn exp_rand() -> f64; + #[doc = "Normal Distribution"] pub fn Rf_dnorm4(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pnorm5( arg1: f64, @@ -1902,6 +1905,7 @@ extern "C" { arg4: ::std::os::raw::c_int, arg5: ::std::os::raw::c_int, ); + #[doc = "Uniform Distribution"] pub fn Rf_dunif(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_punif( arg1: f64, @@ -1918,6 +1922,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_runif(arg1: f64, arg2: f64) -> f64; + #[doc = "Gamma Distribution"] pub fn Rf_dgamma(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pgamma( arg1: f64, @@ -1939,9 +1944,11 @@ extern "C" { pub fn Rf_log1mexp(arg1: f64) -> f64; pub fn Rf_lgamma1p(arg1: f64) -> f64; pub fn Rf_pow1p(arg1: f64, arg2: f64) -> f64; + #[doc = "Compute the log of a sum or difference from logs of terms, i.e.,\n\n log (exp (logx) + exp (logy))\n or log (exp (logx) - exp (logy))\n\n without causing overflows or throwing away too much accuracy:"] pub fn Rf_logspace_add(logx: f64, logy: f64) -> f64; pub fn Rf_logspace_sub(logx: f64, logy: f64) -> f64; pub fn Rf_logspace_sum(arg1: *const f64, arg2: ::std::os::raw::c_int) -> f64; + #[doc = "Beta Distribution"] pub fn Rf_dbeta(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pbeta( arg1: f64, @@ -1958,6 +1965,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rbeta(arg1: f64, arg2: f64) -> f64; + #[doc = "Lognormal Distribution"] pub fn Rf_dlnorm(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_plnorm( arg1: f64, @@ -1974,6 +1982,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rlnorm(arg1: f64, arg2: f64) -> f64; + #[doc = "Chi-squared Distribution"] pub fn Rf_dchisq(arg1: f64, arg2: f64, arg3: ::std::os::raw::c_int) -> f64; pub fn Rf_pchisq( arg1: f64, @@ -1988,6 +1997,7 @@ extern "C" { arg4: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rchisq(arg1: f64) -> f64; + #[doc = "Non-central Chi-squared Distribution"] pub fn Rf_dnchisq(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pnchisq( arg1: f64, @@ -2004,6 +2014,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rnchisq(arg1: f64, arg2: f64) -> f64; + #[doc = "F Distribution"] pub fn Rf_df(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pf( arg1: f64, @@ -2020,6 +2031,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rf(arg1: f64, arg2: f64) -> f64; + #[doc = "Student t Distribution"] pub fn Rf_dt(arg1: f64, arg2: f64, arg3: ::std::os::raw::c_int) -> f64; pub fn Rf_pt( arg1: f64, @@ -2034,6 +2046,7 @@ extern "C" { arg4: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rt(arg1: f64) -> f64; + #[doc = "Binomial Distribution"] pub fn Rf_dbinom_raw(x: f64, n: f64, p: f64, q: f64, give_log: ::std::os::raw::c_int) -> f64; pub fn Rf_dbinom(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pbinom( @@ -2051,12 +2064,14 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rbinom(arg1: f64, arg2: f64) -> f64; + #[doc = "Multinomial Distribution"] pub fn Rf_rmultinom( arg1: ::std::os::raw::c_int, arg2: *mut f64, arg3: ::std::os::raw::c_int, arg4: *mut ::std::os::raw::c_int, ); + #[doc = "Cauchy Distribution"] pub fn Rf_dcauchy(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pcauchy( arg1: f64, @@ -2073,6 +2088,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rcauchy(arg1: f64, arg2: f64) -> f64; + #[doc = "Exponential Distribution"] pub fn Rf_dexp(arg1: f64, arg2: f64, arg3: ::std::os::raw::c_int) -> f64; pub fn Rf_pexp( arg1: f64, @@ -2087,6 +2103,7 @@ extern "C" { arg4: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rexp(arg1: f64) -> f64; + #[doc = "Geometric Distribution"] pub fn Rf_dgeom(arg1: f64, arg2: f64, arg3: ::std::os::raw::c_int) -> f64; pub fn Rf_pgeom( arg1: f64, @@ -2101,6 +2118,7 @@ extern "C" { arg4: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rgeom(arg1: f64) -> f64; + #[doc = "Hypergeometric Distribution"] pub fn Rf_dhyper( arg1: f64, arg2: f64, @@ -2125,6 +2143,7 @@ extern "C" { arg6: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rhyper(arg1: f64, arg2: f64, arg3: f64) -> f64; + #[doc = "Negative Binomial Distribution"] pub fn Rf_dnbinom(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pnbinom( arg1: f64, @@ -2157,6 +2176,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rnbinom_mu(arg1: f64, arg2: f64) -> f64; + #[doc = "Poisson Distribution"] pub fn Rf_dpois_raw(arg1: f64, arg2: f64, arg3: ::std::os::raw::c_int) -> f64; pub fn Rf_dpois(arg1: f64, arg2: f64, arg3: ::std::os::raw::c_int) -> f64; pub fn Rf_ppois( @@ -2172,6 +2192,7 @@ extern "C" { arg4: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rpois(arg1: f64) -> f64; + #[doc = "Weibull Distribution"] pub fn Rf_dweibull(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pweibull( arg1: f64, @@ -2188,6 +2209,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rweibull(arg1: f64, arg2: f64) -> f64; + #[doc = "Logistic Distribution"] pub fn Rf_dlogis(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_plogis( arg1: f64, @@ -2204,6 +2226,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rlogis(arg1: f64, arg2: f64) -> f64; + #[doc = "Non-central Beta Distribution"] pub fn Rf_dnbeta( arg1: f64, arg2: f64, @@ -2228,6 +2251,7 @@ extern "C" { arg6: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rnbeta(arg1: f64, arg2: f64, arg3: f64) -> f64; + #[doc = "Non-central F Distribution"] pub fn Rf_dnf(arg1: f64, arg2: f64, arg3: f64, arg4: f64, arg5: ::std::os::raw::c_int) -> f64; pub fn Rf_pnf( arg1: f64, @@ -2245,6 +2269,7 @@ extern "C" { arg5: ::std::os::raw::c_int, arg6: ::std::os::raw::c_int, ) -> f64; + #[doc = "Non-central Student t Distribution"] pub fn Rf_dnt(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pnt( arg1: f64, @@ -2260,6 +2285,7 @@ extern "C" { arg4: ::std::os::raw::c_int, arg5: ::std::os::raw::c_int, ) -> f64; + #[doc = "Studentized Range Distribution"] pub fn Rf_ptukey( arg1: f64, arg2: f64, @@ -2276,6 +2302,7 @@ extern "C" { arg5: ::std::os::raw::c_int, arg6: ::std::os::raw::c_int, ) -> f64; + #[doc = "Wilcoxon Rank Sum Distribution"] pub fn Rf_dwilcox(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pwilcox( arg1: f64, @@ -2293,6 +2320,7 @@ extern "C" { ) -> f64; pub fn Rf_rwilcox(arg1: f64, arg2: f64) -> f64; pub fn wilcox_free(); + #[doc = "Wilcoxon Signed Rank Distribution"] pub fn Rf_dsignrank(arg1: f64, arg2: f64, arg3: ::std::os::raw::c_int) -> f64; pub fn Rf_psignrank( arg1: f64, @@ -2308,6 +2336,7 @@ extern "C" { ) -> f64; pub fn Rf_rsignrank(arg1: f64) -> f64; pub fn signrank_free(); + #[doc = "Gamma and Related Functions"] pub fn Rf_gammafn(arg1: f64) -> f64; pub fn Rf_lgammafn(arg1: f64) -> f64; pub fn Rf_lgammafn_sign(arg1: f64, arg2: *mut ::std::os::raw::c_int) -> f64; @@ -2329,6 +2358,7 @@ extern "C" { pub fn Rf_lbeta(arg1: f64, arg2: f64) -> f64; pub fn Rf_choose(arg1: f64, arg2: f64) -> f64; pub fn Rf_lchoose(arg1: f64, arg2: f64) -> f64; + #[doc = "Bessel Functions"] pub fn Rf_bessel_i(arg1: f64, arg2: f64, arg3: f64) -> f64; pub fn Rf_bessel_j(arg1: f64, arg2: f64) -> f64; pub fn Rf_bessel_k(arg1: f64, arg2: f64, arg3: f64) -> f64; @@ -2337,6 +2367,7 @@ extern "C" { pub fn Rf_bessel_j_ex(arg1: f64, arg2: f64, arg3: *mut f64) -> f64; pub fn Rf_bessel_k_ex(arg1: f64, arg2: f64, arg3: f64, arg4: *mut f64) -> f64; pub fn Rf_bessel_y_ex(arg1: f64, arg2: f64, arg3: *mut f64) -> f64; + #[doc = "General Support Functions"] pub fn Rf_imax2( arg1: ::std::os::raw::c_int, arg2: ::std::os::raw::c_int, @@ -2480,15 +2511,22 @@ extern "C" { pub fn R_set_altlist_Set_elt_method(cls: R_altrep_class_t, fun: R_altlist_Set_elt_method_t); pub fn R_GE_getVersion() -> ::std::os::raw::c_int; pub fn R_GE_checkVersionOrDie(version: ::std::os::raw::c_int); + #[doc = "Properly declared version of devNumber"] pub fn Rf_ndevNumber(arg1: pDevDesc) -> ::std::os::raw::c_int; + #[doc = "How many devices exist ? (>= 1)"] pub fn Rf_NumDevices() -> ::std::os::raw::c_int; #[doc = "Check for an available device slot"] pub fn R_CheckDeviceAvailable(); pub fn R_CheckDeviceAvailableBool() -> Rboolean; + #[doc = "Return the number of the current device."] pub fn Rf_curDevice() -> ::std::os::raw::c_int; + #[doc = "Return the number of the next device."] pub fn Rf_nextDevice(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[doc = "Return the number of the previous device."] pub fn Rf_prevDevice(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[doc = "Make the specified device (specified by number) the current device"] pub fn Rf_selectDevice(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[doc = "Kill device which is identified by number."] pub fn Rf_killDevice(arg1: ::std::os::raw::c_int); pub fn Rf_NoDevices() -> ::std::os::raw::c_int; pub fn Rf_NewFrameConfirm(arg1: pDevDesc); @@ -2506,6 +2544,7 @@ extern "C" { pub static mut R_interrupts_pending: ::std::os::raw::c_int; pub fn Rf_onintr(); pub static mut mbcslocale: Rboolean; + #[doc = "Useful for devices: translates Adobe symbol encoding to UTF-8"] pub fn Rf_AdobeSymbol2utf8( out: *mut ::std::os::raw::c_char, in_: *const ::std::os::raw::c_char, @@ -2523,6 +2562,7 @@ extern "C" { ) -> *const ::std::os::raw::c_char; #[doc = "Translates Unicode point to UTF-8"] pub fn Rf_ucstoutf8(s: *mut ::std::os::raw::c_char, c: ::std::os::raw::c_uint) -> usize; + #[doc = "map DevDesc to enclosing GEDevDesc"] pub fn Rf_desc2GEDesc(dd: pDevDesc) -> pGEDevDesc; pub fn GEdeviceNumber(arg1: pGEDevDesc) -> ::std::os::raw::c_int; pub fn GEgetDevice(arg1: ::std::os::raw::c_int) -> pGEDevDesc; @@ -2552,8 +2592,10 @@ extern "C" { pub fn GEtoDeviceWidth(value: f64, from: GEUnit, dd: pGEDevDesc) -> f64; pub fn GEfromDeviceHeight(value: f64, to: GEUnit, dd: pGEDevDesc) -> f64; pub fn GEtoDeviceHeight(value: f64, from: GEUnit, dd: pGEDevDesc) -> f64; + #[doc = "Convert an element of a R colour specification (which might be a\nnumber or a string) into an internal colour specification."] pub fn Rf_RGBpar(arg1: SEXP, arg2: ::std::os::raw::c_int) -> rcolor; pub fn Rf_RGBpar3(arg1: SEXP, arg2: ::std::os::raw::c_int, arg3: rcolor) -> rcolor; + #[doc = "Convert an internal colour specification to/from a colour name"] pub fn Rf_col2name(col: rcolor) -> *const ::std::os::raw::c_char; #[doc = "Convert either a name or a #RRGGBB\\[AA\\] string to internal.\nBecause people were using it, it also converts \"1\", \"2\" ...\nto a colour in the palette, and \"0\" to transparent white."] pub fn R_GE_str2col(s: *const ::std::os::raw::c_char) -> rcolor;