Skip to content

Commit 13a9e5e

Browse files
authored
shorten paths in inst/include/nCompiler due to warnings that long paths are not portable (#93)
1 parent af9055c commit 13a9e5e

110 files changed

Lines changed: 197 additions & 197 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

archived_tests/v1tests/status.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ labelAbstractTypes: [ FAIL 0 | WARN 0 | SKIP 1 | PASS 25 ]
6868

6969
math:
7070

71-
nClass_interface: [ FAIL 2 | WARN 0 | SKIP 0 | PASS 4 ]
71+
nC_inter: [ FAIL 2 | WARN 0 | SKIP 0 | PASS 4 ]
7272
`check` not equal to array(c(2.3, 3.4, 4.5)).
7373
Attributes: < target is NULL, current is list >
7474
vector set and get from a full interface

nCompiler/NAMESPACE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export(argType2Cpp)
99
export(build_compiled_nClass)
1010
export(calcInputList_to_calcInstrList)
1111
export(calcInstr_nClass)
12-
export(calcInstrList_nClass)
12+
export(calcInstrList_nC)
1313
export(cloglog)
1414
export(check_Rcpp_for_nCompiler)
1515
export(compileNimble)

nCompiler/R/Rcpp_nCompiler_plugin.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ inlineCxxPlugin_env <- new.env()
1212
## registerPlugin occurs in the package source code.
1313
inlineCxxPlugin <- function(...) {
1414
uses_eigen <- !isFALSE(inlineCxxPlugin_env$uses_eigen)
15-
uses_nClass_interface <- !isFALSE(inlineCxxPlugin_env$uses_nClass_interface)
15+
uses_nC_inter <- !isFALSE(inlineCxxPlugin_env$uses_nC_inter)
1616
uses_nList <- !isFALSE(inlineCxxPlugin_env$uses_nList)
1717
uses_cereal <- !isFALSE(inlineCxxPlugin_env$uses_cereal)
1818
uses_TBB <- FALSE # !isFALSE(inlineCxxPlugin_env$uses_TBB) # including here causes error due to #defining FALSE
1919
include.before <- character()
2020
if(uses_eigen) include.before <- paste0(include.before, "#define NCOMPILER_USES_EIGEN\n")
21-
if(uses_nClass_interface) include.before <- paste0(include.before, "#define NCOMPILER_USES_NCLASS_INTERFACE\n")
21+
if(uses_nC_inter) include.before <- paste0(include.before, "#define NCOMPILER_USES_NCLASS_INTERFACE\n")
2222
if(uses_nList) include.before <- paste0(include.before, "#define NCOMPILER_USES_NLIST\n")
2323
if(uses_cereal) include.before <- paste0(include.before, "#define NCOMPILER_USES_CEREAL\n")
2424
if(uses_TBB) include.before <- paste0(include.before, "#define NCOMPILER_USES_TBB\n")

nCompiler/R/cppDefs_R_interface_calls.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ global_R_interface_cppDef <-
55
# ),
66
# Hincludes = nCompilerIncludeFile("nCompiler_omnibus_first_h.h"),
77
#CPPincludes = c(nCompilerIncludeFile("nCompiler_omnibus_first_cpp.h"),
8-
# nCompilerIncludeFile("nClass_interface/post_Rcpp/process_call_args.h")),
8+
# nCompilerIncludeFile("nC_inter/post_Rcpp/process_call_args.h")),
99
Hpreamble = c("#define NCOMPILER_USES_NCLASS_INTERFACE",
1010
"#define USES_NCOMPILER"),
1111
CPPpreamble = c("#define NCOMPILER_USES_NCLASS_INTERFACE",

nCompiler/R/cppDefs_serialize.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ global_serialization_cppDef <-
1919
# This is done here because it must be done once and only once to avoid
2020
# duplicate symbols when compiling as a package.
2121
CPPincludes = c(#nCompilerIncludeFile("nCompiler_omnibus_first_cpp.h"),
22-
nCompilerIncludeFile("nClass_cereal/post_Rcpp/serialization_mgr.h")),
22+
nCompilerIncludeFile("nC_cereal/post_Rcpp/serialization_mgr.h")),
2323
CPPusings = c("using namespace Rcpp;",
2424
"// [[Rcpp::plugins(nCompiler_plugin)]]",
2525
"// [[Rcpp::depends(nCompiler)]]",

nCompiler/R/nimbleModels.R

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ nodeInstr_nClass <- nClass(
2020
methodInstr = 'integerVector',
2121
indsInstrVec = "nList('integerVector')"
2222
),
23-
predefined = quote(system.file(file.path("include","nCompiler", "predefined_nClasses"), package="nCompiler") |>
23+
predefined = quote(system.file(file.path("include","nCompiler", "predef"), package="nCompiler") |>
2424
file.path("nodeInstr_nClass")),
2525
compileInfo=list(interface="full",
2626
createFromR = TRUE#,
@@ -34,7 +34,7 @@ calcInstr_nClass <- nClass(
3434
nodeIndex = 'integerScalar',
3535
nodeInstrVec = "nList('nodeInstr_nClass')"
3636
),
37-
predefined = quote(system.file(file.path("include","nCompiler", "predefined_nClasses"), package="nCompiler") |>
37+
predefined = quote(system.file(file.path("include","nCompiler", "predef"), package="nCompiler") |>
3838
file.path("calcInstr_nClass")),
3939
compileInfo=list(interface="full",
4040
createFromR = TRUE,
@@ -43,13 +43,13 @@ calcInstr_nClass <- nClass(
4343
)
4444
)
4545

46-
calcInstrList_nClass <- nClass(
47-
classname = "calcInstrList_nClass",
46+
calcInstrList_nC <- nClass(
47+
classname = "calcInstrList_nC",
4848
Cpublic = list(
4949
calcInstrList = "nList('calcInstr_nClass')"
5050
),
51-
predefined = quote(system.file(file.path("include","nCompiler", "predefined_nClasses"), package="nCompiler") |>
52-
file.path("calcInstrList_nClass")),
51+
predefined = quote(system.file(file.path("include","nCompiler", "predef"), package="nCompiler") |>
52+
file.path("calcInstrList_nC")),
5353
compileInfo=list(interface="full",
5454
createFromR = TRUE,
5555
Hincludes = "<calcInstr_nClass_c_.h>")
@@ -71,7 +71,7 @@ nodeFxnBase_nClass <- nClass(
7171
),
7272
# We haven't dealt with ensuring a virtual destructor when any method is virtual
7373
# For now I did it manually by editing the .h and .cpp
74-
predefined = quote(system.file(file.path("include","nCompiler", "predefined_nClasses"), package="nCompiler") |>
74+
predefined = quote(system.file(file.path("include","nCompiler", "predef"), package="nCompiler") |>
7575
file.path("nodeFxnBase_nClass")),
7676
compileInfo=list(interface="full",
7777
createFromR = FALSE)
@@ -92,17 +92,17 @@ modelBase_nClass <- nClass(
9292
function(calcInstrList) {cat("In uncompiled calculate\n")},
9393
returnType = 'numericScalar',
9494
compileInfo = list(
95-
C_fun = function(calcInstrList='calcInstrList_nClass') {
95+
C_fun = function(calcInstrList='calcInstrList_nC') {
9696
cppLiteral('Rprintf("modelBase_nClass calculate (should not see this)\\n");'); return(0)},
9797
virtual=TRUE
9898
)
9999
)
100100
),
101101
# See comment above about needing to ensure a virtual destructor
102-
predefined = quote(system.file(file.path("include","nCompiler", "predefined_nClasses"), package="nCompiler") |> file.path("modelBase_nClass")),
102+
predefined = quote(system.file(file.path("include","nCompiler", "predef"), package="nCompiler") |> file.path("modelBase_nClass")),
103103
compileInfo=list(interface="full",
104104
createFromR = FALSE,
105-
Hincludes = c("<nodeFxnBase_nClass_c_.h>", "<calcInstrList_nClass_c_.h>"))
105+
Hincludes = c("<nodeFxnBase_nClass_c_.h>", "<calcInstrList_nC_c_.h>"))
106106
)
107107

108108
# nCompile(modelBase_nClass, control=list(generate_predefined=TRUE))
@@ -267,7 +267,7 @@ makeModel_nClass <- function(varInfo,
267267
compileInfo = list(opDefs = OPDEFS,
268268
nClass_inherit = list(base=BASECLASS)
269269
#inherit = list(base = "public modelClass_<mymodel>"),
270-
#Hincludes = "<nCompiler/nClass_interface/post_Rcpp/nCompiler_model_base_devel.h>"
270+
#Hincludes = "<nCompiler/nC_inter/post_Rcpp/nCompiler_model_base_devel.h>"
271271
),
272272
Cpublic = CPUBLIC
273273
),
@@ -358,7 +358,7 @@ make_model_from_nimbleModel <- function(m) {
358358
model <- makeModel_nClass(modelVarInfo, nodeInfoList, classname = "my_model")
359359
# Currently we must compile from here because here is where we know the nodeFxnName[s].
360360
# We have a situation where order matters: model needs to come after the utility classes. Fix me.
361-
argList <- list("modelBase_nClass", "nodeFxnBase_nClass", "calcInstrList_nClass", "calcInstr_nClass", "nodeInstr_nClass", "model")
361+
argList <- list("modelBase_nClass", "nodeFxnBase_nClass", "calcInstrList_nC", "calcInstr_nClass", "nodeInstr_nClass", "model")
362362
argList <- c(argList, as.list(nodeFxnNames))
363363
argList <- argList |> lapply(as.name)
364364
Cmodel <- do.call("nCompile", argList)
@@ -386,7 +386,7 @@ calcInputList_to_calcInstrList <- function(calcInputList, comp) {
386386
calcInstr$nodeInstrVec <- nodeInstrVec
387387
calcInstrList[[iCalc]] <- calcInstr
388388
}
389-
calcInstrListObj <- comp$calcInstrList_nClass$new()
389+
calcInstrListObj <- comp$calcInstrList_nC$new()
390390
calcInstrListObj$calcInstrList <- calcInstrList
391391
return(calcInstrListObj)
392392
}

nCompiler/inst/include/nCompiler/EigenTensor_Rcpp_extensions/.DS_Store renamed to nCompiler/inst/include/nCompiler/ET_Rcpp_ext/.DS_Store

File renamed without changes.

nCompiler/inst/include/nCompiler/EigenTensor_Rcpp_extensions/EigenTensor_Rcpp_extensions_forward_declarations.h renamed to nCompiler/inst/include/nCompiler/ET_Rcpp_ext/ET_Rcpp_ext_forward_declarations.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef EIGENTENSOR_RCPP_EXTENSIONS_FORWARD_DECLARATIONS_H_
2-
#define EIGENTENSOR_RCPP_EXTENSIONS_FORWARD_DECLARATIONS_H_
1+
#ifndef ET_Rcpp_ext_FORWARD_DECLARATIONS_H_
2+
#define ET_Rcpp_ext_FORWARD_DECLARATIONS_H_
33

44
#include <type_traits>
55
#include <memory>
@@ -59,4 +59,4 @@ namespace Rcpp {
5959
} // end namespace traits
6060
} // end namespace Rcpp
6161

62-
#endif // EIGENTENSOR_RCPP_EXTENSIONS_FORWARD_DECLARATIONS_H_
62+
#endif // ET_Rcpp_ext_FORWARD_DECLARATIONS_H_
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
//#ifndef NCOMPILER_ET_Rcpp_ext_H_
2+
//#define NCOMPILER_ET_Rcpp_ext_H_
3+
4+
//#include "ET_Rcpp_ext_pre_Rcpp.h"
5+
#include <nCompiler/ET_Rcpp_ext/post_Rcpp/SEXP_2_EigenTensor.h>
6+
#include <nCompiler/ET_Rcpp_ext/post_Rcpp/ET_Rcpp_as_wrap.h>
7+
#include <nCompiler/ET_Rcpp_ext/post_Rcpp/ET_SEXP_converter.h>
8+
#include <nCompiler/ET_Rcpp_ext/post_Rcpp/ETaccessor_post_Rcpp.h>
9+
10+
//#endif // EIGEN_RCPP_EXTENSIONS_H_

nCompiler/inst/include/nCompiler/EigenTensor_Rcpp_extensions/EigenTensor_Rcpp_extensions_pre_Rcpp.h renamed to nCompiler/inst/include/nCompiler/ET_Rcpp_ext/ET_Rcpp_ext_pre_Rcpp.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
#define EIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS
88

99
//#include <RcppCommon.h>
10-
#include "EigenTensor_Rcpp_extensions_forward_declarations.h"
11-
//#include <nCompiler/EigenTensor_extensions/EigenTensor_extensions_pre_Rcpp.h>
10+
#include "ET_Rcpp_ext_forward_declarations.h"
11+
//#include <nCompiler/ET_ext/ET_ext_pre_Rcpp.h>
1212
#include "ETaccessor.h"
1313

1414
//#endif // NCOMPILER_TENSOR_RCPP_FORWARD_DECLARATIONS_H_

0 commit comments

Comments
 (0)