-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from oelhammouchi/develop
Tweak some more CRAN things and add requirement for Fortran 2003
- Loading branch information
Showing
10 changed files
with
90 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,44 @@ | ||
Package: trngl | ||
Type: Package | ||
Package: trngl | ||
Title: Bootstrap Simulations for Claims Reserving Models | ||
Version: 0.1.0 | ||
Date: 2023-02-08 | ||
Authors@R: c( | ||
Authors@R: | ||
person("Othman", "El Hammouchi", , "[email protected]", role = c("aut", "cph", "cre")) | ||
) | ||
Description: Check the assumptions of popular actuarial reserving models against a given claims triangle using | ||
efficient parallel bootstrap simulations. Various simulation configurations are supported for the Mack and ODP models. | ||
Facilities are provided for visualising the results and flagging suspicious observations. | ||
Description: Check the assumptions of popular actuarial reserving models | ||
against a given claims triangle using efficient parallel bootstrap | ||
simulations. Various simulation configurations are supported for the | ||
Mack and overdispersed Poisson models. Facilities are provided for visualising the | ||
results and flagging suspicious observations. | ||
License: MIT + file LICENSE | ||
Depends: R (>= 3.5.0) | ||
Depends: | ||
R (>= 3.5.0) | ||
Imports: | ||
rTRNG (>= 4.23.1.2), | ||
ChainLadder (>= 0.2.18), | ||
cli (>= 3.6.2), | ||
ggplot2 (>= 3.5.1), | ||
ggrepel (>= 0.9.5), | ||
reshape2 (>= 1.4.4), | ||
rlang (>= 1.1.3), | ||
cli (>= 3.6.2) | ||
LinkingTo: | ||
Rcpp (>= 0.11.0), | ||
RcppArmadillo (>= 0.12.8.2.1), | ||
BH (>= 1.84.0.0), | ||
rTRNG (>= 4.23.1.2), | ||
RcppProgress (>= 0.4.2) | ||
rTRNG (>= 4.23.1.2) | ||
Suggests: | ||
covr, | ||
testthat (>= 3.0.0), | ||
withr (>= 3.0.0) | ||
LazyData: true | ||
LinkingTo: | ||
BH (>= 1.84.0.0), | ||
Rcpp (>= 0.11.0), | ||
RcppArmadillo (>= 0.12.8.2.1), | ||
RcppProgress (>= 0.4.2), | ||
rTRNG (>= 4.23.1.2) | ||
Config/testthat/edition: 3 | ||
Config/testthat/parallel: true | ||
Encoding: UTF-8 | ||
RoxygenNote: 7.2.3 | ||
Roxygen: list(load = "source", old_usage = TRUE, markdown = TRUE) | ||
LazyData: true | ||
NeedsCompilation: yes | ||
Packaged: 2023-02-26 18:07:38 UTC; othman | ||
Config/testthat/edition: 3 | ||
Config/testthat/parallel: true | ||
Roxygen: list(load = "source", old_usage = TRUE, markdown = TRUE) | ||
RoxygenNote: 7.2.3 | ||
SystemRequirements: Fortran 2003 | ||
Collate: | ||
'RcppExports.R' | ||
'boot_res.R' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/usr/bin/env sh | ||
|
||
cat <<EOF > test-f03.f90 | ||
module mod_test | ||
implicit none | ||
type t_test | ||
integer :: test_field | ||
contains | ||
procedure :: set_test_field | ||
end type t_test | ||
contains | ||
subroutine set_test_field(this, val) | ||
class(t_test) :: this | ||
integer :: val | ||
this%test_field = val | ||
end subroutine set_test_field | ||
end module mod_test | ||
program test | ||
use mod_test | ||
implicit none | ||
type(t_test) :: test_var | ||
call test_var%set_test_field(0) | ||
end program test | ||
EOF | ||
|
||
if ! "${R_HOME}"/bin/R CMD SHLIB test-f03.f90; then | ||
echo "*********************************************************************************" | ||
echo "Your Fortran compiler does not appear to support all features of the 2003" | ||
echo "standard. Please install a compatible compiler, set this in your ~/.R/Makevars" | ||
echo "and try again." | ||
echo "*********************************************************************************" | ||
|
||
exit 1 | ||
fi | ||
|
||
rm -f test-f03.* mod_test.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.