Could you please show the full output from devtools::check()? I wasn't able to replicate the error.
I created a new directory that contained the following DESCRIPTION file. Note that it includes caret in the Imports.
Package: tswgewrapped
Title: Helpful wrappers for 'tswge', 'vars' and 'nnfor' time series packages
Version: 1.8.10
Authors@R: c(
person("David", "Josephs", email = "josephsd@smu.edu", role = c("aut", "cre")),
person("Nikhil", "Gupta", email = "guptan@smu.edu", role = c("aut")))
Description: This package provides several helpful wrappers for the already useful 'tswge', 'vars' and 'nnfor' package. In the future, this package intends to move away from the tswge backend, to be faster, with more readable source code.
License: AGPL-3
Encoding: UTF-8
LazyData: true
Imports:
assertr,
caret,
doParallel,
dplyr,
ggfortify,
GGally,
ggplot2,
magrittr,
nnfor,
rlang,
pander,
parallel,
patchwork,
purrr,
R6,
RColorBrewer,
Rfast,
tibble,
tictoc,
tswge,
vars,
forecast
RoxygenNote: 7.1.0
Suggests:
testthat (>= 2.1.0),
tseries,
knitr,
rmarkdown
VignetteBuilder: knitr
I am able to run devtools::check():
> devtools::check()
Updating tswgewrapped documentation
First time using roxygen2. Upgrading automatically...
Loading tswgewrapped
Writing NAMESPACE
-- Building ---------------------------------------------------- tswgewrapped --
Setting env vars:
* CFLAGS : -Wall -pedantic
* CXXFLAGS : -Wall -pedantic
* CXX11FLAGS: -Wall -pedantic
--------------------------------------------------------------------------------
√ checking for file 'C:\Users\BLISCJX\Documents\test/DESCRIPTION' (685ms)
- preparing 'tswgewrapped':
√ checking DESCRIPTION meta-information ...
- checking for LF line-endings in source and make files and shell scripts
- checking for empty or unneeded directories
Removed empty directory 'tswgewrapped/man'
- building 'tswgewrapped_1.8.10.tar.gz'
-- Checking ---------------------------------------------------- tswgewrapped --
Setting env vars:
* _R_CHECK_CRAN_INCOMING_REMOTE_: FALSE
* _R_CHECK_CRAN_INCOMING_ : FALSE
* _R_CHECK_FORCE_SUGGESTS_ : FALSE
* NOT_CRAN : true
-- R CMD check ----------------------------------------------------------------------
- using log directory 'C:/Users/BLISCJX/AppData/Local/Temp/RtmpY1lTOQ/tswgewrapped.Rcheck' (727ms)
- using R version 3.6.3 (2020-02-29)
- using platform: x86_64-w64-mingw32 (64-bit)
- using session charset: ISO8859-1
- using options '--no-manual --as-cran'
√ checking for file 'tswgewrapped/DESCRIPTION' ...
- this is package 'tswgewrapped' version '1.8.10'
- package encoding: UTF-8
√ checking package namespace information ...
√ checking package dependencies (1.3s)
√ checking if this is a source package ...
√ checking if there is a namespace
√ checking for .dll and .exe files
√ checking for hidden files and directories ...
√ checking for portable file names ...
√ checking serialization versions ...
√ checking whether package 'tswgewrapped' can be installed (4.6s)
√ checking package directory (1.5s)
√ checking for future file timestamps (426ms)
√ checking DESCRIPTION meta-information (1s)
√ checking top-level files ...
√ checking for left-over files
√ checking index information
√ checking package subdirectories (338ms)
√ checking whether the package can be loaded (525ms)
√ checking whether the package can be loaded with stated dependencies (335ms)
√ checking whether the package can be unloaded cleanly (366ms)
√ checking whether the namespace can be loaded with stated dependencies (343ms)
√ checking whether the namespace can be unloaded cleanly (552ms)
√ checking loading without being on the library search path (1.3s)
- checking examples ... NONE (481ms)
√ checking for detritus in the temp directory
-- R CMD check results ------------------------------------- tswgewrapped 1.8.10 ----
Duration: 15.3s
0 errors √ | 0 warnings √ | 0 notes √
And here is my session information:
> sessionInfo()
R version 3.6.3 (2020-02-29)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18362)
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] tswgewrapped_1.8.10
loaded via a namespace (and not attached):
[1] colorspace_1.4-1 ellipsis_0.3.0 class_7.3-15
[4] rprojroot_1.3-2 fs_1.3.2 rstudioapi_0.11
[7] roxygen2_7.1.0 remotes_2.1.1 smooth_2.5.5
[10] prodlim_2019.11.13 fansi_0.4.1 lubridate_1.7.4
[13] xml2_1.2.5 codetools_0.2-16 splines_3.6.3
[16] doParallel_1.0.15 knitr_1.28 pkgload_1.0.2
[19] greybox_0.5.9 nloptr_1.2.2.1 pROC_1.16.2
[22] caret_6.0-86 compiler_3.6.3 tictoc_1.0
[25] backports_1.1.5 assertthat_0.2.1 RcppZiggurat_0.1.5
[28] Matrix_1.2-18 strucchange_1.5-2 cli_2.0.2
[31] prettyunits_1.1.1 tools_3.6.3 gtable_0.3.0
[34] glue_1.3.1 reshape2_1.4.3 dplyr_0.8.5
[37] Rcpp_1.0.3 xopen_1.0.0 fracdiff_1.5-1
[40] vctrs_0.2.4 lamW_1.3.0 urca_1.3-0
[43] tswge_1.0.0 nlme_3.1-144 vars_1.5-3
[46] iterators_1.0.12 lmtest_0.9-37 timeDate_3043.102
[49] gower_0.2.1 xfun_0.12 stringr_1.4.0
[52] ps_1.3.2 testthat_2.3.2 lifecycle_0.2.0
[55] devtools_2.2.2 statmod_1.4.34 MASS_7.3-51.5
[58] zoo_1.8-7 scales_1.1.0 ipred_0.9-9
[61] sandwich_2.5-1 parallel_3.6.3 RColorBrewer_1.1-2
[64] quantmod_0.4.17 curl_4.3 memoise_1.1.0
[67] gridExtra_2.3 ggplot2_3.3.0 pander_0.6.3
[70] rcmdcheck_1.3.3 rpart_4.1-15 reshape_0.8.8
[73] stringi_1.4.6 tseries_0.10-47 desc_1.2.0
[76] foreach_1.5.0 TTR_0.23-6 pkgbuild_1.0.6
[79] lava_1.6.7 rlang_0.4.5 pkgconfig_2.0.3
[82] pracma_2.2.9 lattice_0.20-40 purrr_0.3.3
[85] nnfor_0.9.6 recipes_0.1.10 patchwork_1.0.0
[88] Rfast_1.9.9 processx_3.4.2 tidyselect_1.0.0
[91] GGally_1.4.0 plyr_1.8.6 magrittr_1.5
[94] R6_2.4.1 generics_0.0.2 pillar_1.4.3
[97] withr_2.1.2 xts_0.12-0 survival_3.1-11
[100] nnet_7.3-13 ggfortify_0.4.9 tibble_2.1.3
[103] crayon_1.3.4 usethis_1.5.1 grid_3.6.3
[106] data.table_1.12.8 callr_3.4.2 ModelMetrics_1.2.2.2
[109] forecast_8.12 digest_0.6.25 MAPA_2.0.4
[112] assertr_2.7 tidyr_1.0.2 tsutils_0.9.2
[115] RcppParallel_5.0.0 stats4_3.6.3 munsell_0.5.0
[118] sessioninfo_1.1.1 quadprog_1.5-8