Skip to content

Commit bd1a907

Browse files
committed
Trying to fix Travis build
1 parent f565899 commit bd1a907

File tree

3 files changed

+16
-14
lines changed

3 files changed

+16
-14
lines changed

Cyclops.Rproj

+1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ StripTrailingWhitespace: Yes
1717

1818
BuildType: Package
1919
PackageInstallArgs: --no-multiarch --with-keep.source
20+
PackageCheckArgs: --as-cran
2021
PackageRoxygenize: rd,namespace

src/Makevars

+11-10
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
## Use the R_HOME indirection to support installations of multiple R version
1+
## Use the R_HOME indirection to support installations of multiple R version
22
PKG_LIBS = `$(R_HOME)/bin/Rscript -e "Rcpp:::LdFlags()"`
33

44
## As an alternative, one can also add this code in a file 'configure'
55
##
66
## PKG_LIBS=`${R_HOME}/bin/Rscript -e "Rcpp:::LdFlags()"`
7-
##
7+
##
88
## sed -e "s|@PKG_LIBS@|${PKG_LIBS}|" \
99
## src/Makevars.in > src/Makevars
10-
##
10+
##
1111
## which together with the following file 'src/Makevars.in'
1212
##
1313
## PKG_LIBS = @PKG_LIBS@
@@ -18,7 +18,7 @@ PKG_LIBS = `$(R_HOME)/bin/Rscript -e "Rcpp:::LdFlags()"`
1818
##
1919
## rm src/Makevars
2020
##
21-
## which removes the autogenerated file src/Makevars.
21+
## which removes the autogenerated file src/Makevars.
2222
##
2323
## Of course, autoconf can also be used to write configure files. This is
2424
## done by a number of packages, but recommended only for more advanced users
@@ -49,29 +49,30 @@ OBJECTS.drivers = \
4949
cyclops/drivers/HierarchyAutoSearchCrossValidationDriver.o \
5050
cyclops/drivers/HierarchyGridSearchCrossValidationDriver.o \
5151
cyclops/drivers/ProportionSelector.o
52-
52+
5353
OBJECTS.priors = \
5454
cyclops/priors/CovariatePrior.o
55-
55+
5656
OBJECTS.io = \
5757
cyclops/io/InputReader.o
58-
58+
5959
OBJECTS.engine = \
6060
cyclops/engine/AbstractModelSpecifics.o
61-
61+
6262
OBJECTS.utils = \
6363
utils/HParSearch.o
6464

6565
OBJECTS.thread = \
6666
tinythread/tinythread.o
67-
67+
6868
OBJECTS.R = \
6969
IsSorted.o \
70+
BySum.o \
7071
RcppExports.o \
7172
RcppModelData.o \
7273
RcppCyclopsInterface.o \
7374
RcppIsSorted.o
74-
75+
7576
OBJECTS = $(OBJECTS.cyclops) $(OBJECTS.drivers) \
7677
$(OBJECTS.engine) $(OBJECTS.utils) \
7778
$(OBJECTS.threads) $(OBJECTS.R) \

tests/testthat/test-predict.R

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ test_that("Test predict for Poisson regression", {
1313

1414
# Test using data frames
1515
predictNew <- predict(fit, outcomes, covariates)
16-
expect_less_than(max(abs(predictOriginal - predictNew)), 1e-08)
16+
expect_lt(max(abs(predictOriginal - predictNew)), 1e-08)
1717

1818
# Test using ffdf
1919
predictNew <- predict(fit, as.ffdf(outcomes),as.ffdf(covariates))
20-
expect_less_than(max(abs(predictOriginal - predictNew)), 1e-08)
20+
expect_lt(max(abs(predictOriginal - predictNew)), 1e-08)
2121
})
2222

2323
test_that("Test predict for logistic regression", {
@@ -31,9 +31,9 @@ test_that("Test predict for logistic regression", {
3131

3232
# Test using data frames
3333
predictNew <- predict(fit, outcomes, covariates)
34-
expect_less_than(max(abs(predictOriginal - predictNew)), 1e-08)
34+
expect_lt(max(abs(predictOriginal - predictNew)), 1e-08)
3535

3636
# Test using ffdf
3737
predictNew <- predict(fit, as.ffdf(outcomes),as.ffdf(covariates))
38-
expect_less_than(max(abs(predictOriginal - predictNew)), 1e-08)
38+
expect_lt(max(abs(predictOriginal - predictNew)), 1e-08)
3939
})

0 commit comments

Comments
 (0)