Skip to content

Installation errors due to unknown type name ‘Sint’ when installing CaretPlus package #4

@AnushaPB

Description

@AnushaPB

Hello! I am having issues with installing CaretPlus. I have included details about the problem below, please let me know if there is any other information you need. Thank you in advance for your help!

Environment:

  • OS: Ubuntu 22.04 LTS
  • R Version: 4.3
  • Python Version: 3.11.5 (tensorflow and keras installed)

Code:
remotes::install_github("xinghuq/CaretPlus/pkg/caret")

Error:

Installing package into ‘/media/wanglab/798f0e01-89d1-4d0f-8ed8-ef323be70ab91/Anusha/GitHub/LandGenSamp/renv/library/R-4.3/x>(as ‘lib’ is unspecified)
* installing *source* package ‘caret’ ...
** using staged installation
** libs
using C compiler: ‘gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0’
caret.c:19:6: error: unknown type name ‘Sint’; did you mean ‘uint’?
   19 | knn3(Sint *kin, Sint *lin, Sint *pntr, Sint *pnte, Sint *p,
      |      ^~~~
      |      uint
caret.c:19:17: error: unknown type name ‘Sint’; did you mean ‘uint’?
   19 | knn3(Sint *kin, Sint *lin, Sint *pntr, Sint *pnte, Sint *p,
      |                 ^~~~
      |                 uint
caret.c:19:28: error: unknown type name ‘Sint’; did you mean ‘uint’?
   19 | knn3(Sint *kin, Sint *lin, Sint *pntr, Sint *pnte, Sint *p,
      |                            ^~~~
      |                            uint
caret.c:19:40: error: unknown type name ‘Sint’; did you mean ‘uint’?
   19 | knn3(Sint *kin, Sint *lin, Sint *pntr, Sint *pnte, Sint *p,
      |                                        ^~~~
      |                                        uint
caret.c:19:52: error: unknown type name ‘Sint’; did you mean ‘uint’?
   19 | knn3(Sint *kin, Sint *lin, Sint *pntr, Sint *pnte, Sint *p,
      |                                                    ^~~~
      |                                                    uint
caret.c:20:23: error: unknown type name ‘Sint’; did you mean ‘uint’?
   20 |        double *train, Sint *class, double *test,
      |                       ^~~~
      |                       uint
caret.c:21:8: error: unknown type name ‘Sint’; did you mean ‘uint’?
   21 |        Sint *votes, Sint *nc, Sint *cv, Sint *use_all,double *all_vote)
      |        ^~~~
      |        uint
caret.c:21:21: error: unknown type name ‘Sint’; did you mean ‘uint’?
   21 |        Sint *votes, Sint *nc, Sint *cv, Sint *use_all,double *all_vote)
      |                     ^~~~

R session info:


R version 4.3.2 (2023-10-31)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 22.04.3 LTS

Matrix products: default
BLAS:   /usr/lib/x86_64-linux-gnu/atlas/libblas.so.3.10.3
LAPACK: /usr/lib/x86_64-linux-gnu/atlas/liblapack.so.3.10.3;  LAPACK version 3.10.0

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C
 [9] LC_ADDRESS=C               LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

time zone: America/Los_Angeles
tzcode source: system (glibc)

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

loaded via a namespace (and not attached):
[1] compiler_4.3.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions