Skip to content

Commit 04a2c7d

Browse files
committed
Merge branch 'CRAN-3.1.0-release'
2 parents 98a0dd7 + ab4a9bc commit 04a2c7d

File tree

19 files changed

+120
-55
lines changed

19 files changed

+120
-55
lines changed

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@
1111
^vignettes$
1212
^cran-comments\.md$
1313
^pkgdown$
14+
^CRAN-SUBMISSION$

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ inst/doc
55
.Rapp.history
66
local
77
docs
8+
CRAN-SUBMISSION

DESCRIPTION

Lines changed: 58 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,71 @@ Title: Supervised Component Generalized Linear Regression
44
Description:
55
An extension of the Fisher Scoring Algorithm to combine PLS regression with GLM
66
estimation in the multivariate context. Covariates can also be grouped in themes.
7-
Version: 3.0.9000
8-
Date: 2024-02-24
9-
Authors@R: c(
10-
person("Guillaume","Cornu",,"gcornu@cirad.fr", role=c("aut","cre"), comment=c(ORCID="0000-0002-7523-5176")),
11-
person("Frederic","Mortier",,"fmortier@cirad.fr",role="aut", comment=c(ORCID="0000-0001-5473-709X")),
12-
person("Catherine","Trottier",,"catherine.trottier@univ-montp3.fr",role="aut"),
13-
person("Xavier","Bry",,"xavier.bry@univ-montp2.fr",role="aut"),
14-
person("Jocelyn","Chauvet",,,role="aut", comment=c(ORCID="0000-0002-4466-6483")),
15-
person("Sylvie","Gourlet-Fleury",,"sylvie.gourlet-fleury@cirad.fr",role="dtc",comment=c(ORCID="0000-0002-1136-4307",CoForChange="<http://coforchange.cirad.fr/>")),
16-
person("Claude","Garcia",,"claude.garcia@cirad.fr",role="dtc",comment=c(ORCID="0000-0002-7351-0226",CoForTips="<https://www.cofortips.org/>"))
17-
)
7+
Version: 3.1.0
8+
Date: 2025-03-24
9+
Authors@R:
10+
c(person(
11+
given = "Guillaume",
12+
family = "Cornu",
13+
email = "gcornu@cirad.fr",
14+
role = c("aut","cre"),
15+
comment = c(ORCID = "0000-0002-7523-5176")),
16+
person(
17+
given = "Frederic",
18+
family = "Mortier",
19+
email = "fmortier@cirad.fr",
20+
role = "aut",
21+
comment = c(ORCID = "0000-0001-5473-709X")),
22+
person(
23+
given = "Catherine",
24+
family = "Trottier",
25+
email = "catherine.trottier@univ-montp3.fr",
26+
role = "aut"),
27+
person(
28+
given = "Xavier",
29+
family = "Bry",
30+
email = "xavier.bry@univ-montp2.fr",
31+
role = "aut"),
32+
person(
33+
given = "Jocelyn",
34+
family = "Chauvet",
35+
role = "aut",
36+
comment = c(ORCID="0000-0002-4466-6483")),
37+
person(
38+
given = "Sylvie",
39+
family = "Gourlet-Fleury",
40+
email = "sylvie.gourlet-fleury@cirad.fr",
41+
role = "dtc",
42+
comment = c(ORCID = "0000-0002-1136-4307", "Projet CoForChange <https://coforchange.cirad.fr>")),
43+
person(
44+
given = "Claude",
45+
family = "Garcia",
46+
email = "claude.garcia@cirad.fr",
47+
role = "dtc",
48+
comment = c(ORCID = "0000-0002-7351-0226", "Projet CoForTips <https://www.cofortips.org>")),
49+
person(
50+
"GAMBAS",
51+
role = "fnd",
52+
comment = "<https://gambas.cirad.fr>")
53+
)
1854
License: CeCILL-2 | GPL-2
1955
URL: https://scnext.github.io/SCGLR/, https://github.com/scnext/SCGLR, https://cran.r-project.org/package=SCGLR
2056
BugReports: https://github.com/SCnext/SCGLR/issues
2157
Depends:
2258
R (>= 3.0.0)
2359
Imports:
24-
Matrix,Formula,graphics,ggplot2 (>= 3.0.0),grid,pROC (>= 1.9),ade4,rlang,pls
60+
Matrix,
61+
Formula,
62+
graphics,
63+
ggplot2 (>= 3.0.0),
64+
grid,pROC (>= 1.9),
65+
ade4,
66+
rlang,
67+
pls
2568
Suggests:
26-
future,future.apply,progressr
69+
future,
70+
future.apply,
71+
progressr
2772
LazyData: yes
2873
RoxygenNote: 7.3.2
2974
Encoding: UTF-8

NEWS.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
1-
# version 3.0.9000 (dev)
1+
# version 3.1
2+
3+
## New features
4+
- preliminary integration of code from `SCnext/mixedSCGLR` written by Jocelyn Chauvet (issue #11)
5+
- moved parallelization to `future` framework. Need `future.apply` package (issue #16)
6+
- added progress to `scglrCrossVal` and `scglrThemeBackward` functions using `progressr` package (issue #17)
7+
8+
## Deprecations
9+
- parameter `nfolds` of `scglrCrossVal` as been renamed to `folds` and now accepts also vectors.
10+
For now a warning is issued and provided value is used but update your code as it will likely be removed
11+
in a future version.
12+
- parameter `mc.cores` of `scglrCrossVal` is now deprecated as of the move to `future` framework for parallelization.
13+
14+
## bug fixes and improvements
215
- fix bug happening when providing a single Y variable to `sglrTheme` (issue #1)
316
- allow to provide folds for cross validation defined by user (issue #2)
417
- individual beta and gamma for themes were not properly computed (issue #5)
@@ -12,17 +25,6 @@
1225
- move from `plsdepot::plsreg2` to `pls::plsr` to initialize mixed model components (issue #22)
1326
- fix rstudio bug displaying error message when printing a MultivariateFormula (in fact a Formula) (issue #23).
1427

15-
## New features
16-
- preliminary integration of code from `SCnext/mixedSCGLR` written by Jocelyn Chauvet (issue #11)
17-
- moved parallelization to `future` framework. Need `future.apply` package (issue #16)
18-
- added progress to `scglrCrossVal` and `scglrThemeBackward` functions using `progressr` package (issue #17)
19-
20-
## Deprecations
21-
- parameter `nfolds` of `scglrCrossVal` as been renamed to `folds` and now accepts also vectors.
22-
For now a warning is issued and provided value is used but update your code as it will be removed
23-
in a next version.
24-
- parameter `mc.cores` of `scglrCrossVal` is now deprecated as of the move to `future` framework for parallelization.
25-
2628
# version 3.0
2729
This major version introduces a new feature allowing to group covariates in so called **themes**.
2830

R/data.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#' used to describe the physical factors as well as vegetation characteristics.
1212
#' 14 physical factors were used pertaining the description of topography, geology and rainfall
1313
#' of each plot. Vegetation is characterized through 16-days enhanced vegetation index (EVI) data.
14-
#' @references S. Gourlet-Fleury et al. (2009--2014) CoForChange project: \url{http://coforchange.cirad.fr/}
14+
#' @references S. Gourlet-Fleury et al. (2009--2014) CoForChange project: \url{https://coforchange.cirad.fr/}
1515
#' @references C. Garcia et al. (2013--2015) CoForTips project: \url{https://www.cofortips.org/}
1616
#' @format
1717
#' \tabular{ll}{

R/dataGen.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#' used to describe the physical factors as well as vegetation characteristics.
1212
#' On each plot, 34 physical factors were used pertaining the description of topography, geology, rainfall...
1313
#' Vegetation is characterized through 16-days enhanced vegetation index (EVI) data.
14-
#' @references S. Gourlet-Fleury et al. (2009--2014) CoForChange project: \url{http://coforchange.cirad.fr/}
14+
#' @references S. Gourlet-Fleury et al. (2009--2014) CoForChange project: \url{https://coforchange.cirad.fr/}
1515
#' @references C. Garcia et al. (2013--2015) CoForTips project: \url{https://www.cofortips.org/}
1616
#' @format
1717
#' \tabular{ll}{

R/genus2.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#' used to describe the physical factors as well as vegetation characteristics.
1212
#' 23 physical factors were used pertaining the description of topography, geology and rainfall
1313
#' of each plot. Vegetation is characterized through 16-days enhanced vegetation index (EVI) data.
14-
#' @references S. Gourlet-Fleury et al. (2009--2014) CoForChange project: \url{http://coforchange.cirad.fr/}
14+
#' @references S. Gourlet-Fleury et al. (2009--2014) CoForChange project: \url{https://coforchange.cirad.fr/}
1515
#' @references C. Garcia et al. (2013--2015) CoForTips project: \url{https://www.cofortips.org/}
1616
#' @format
1717
#' \tabular{ll}{

R/methods.r

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#'@param maxiter integer for maximum number of iterations of \code{SR} function
88
#'@param epsilon positive convergence threshold
99
#'@param bailout integer argument
10+
#'@returns an object of class \code{method.SCGLR}
1011
methodSR <- function(phi="vpi", l=1, s=1/2, maxiter=1000, epsilon=1e-6, bailout=10) {
1112

1213
# check arguments

R/scglrCrossVal.r

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,15 +194,15 @@ scglrCrossVal <- function(formula,data,family,K=1,folds=10,type="mspe",size=NUL
194194
xnew <- cbind(1,AX[valid,,drop=FALSE])
195195
beta.coefs <- sapply(gamma.fit, coef)
196196
}
197-
197+
198198
predict <- multivariatePredictGlm(Xnew=xnew,family,
199199
beta.coefs,offset[valid,,drop=FALSE])
200200

201201
if(type=="auc"){
202202
cvNull[1:ny] <- auc(roc(y[valid,,drop=FALSE],predict, quiet=TRUE))
203203
} else if(type%in%c("likelihood","aic","bic","aicc","mspe")){
204204
cvNull[1:ny] <- infoCriterion(ynew=y[valid,,drop=FALSE],predict,family,
205-
type=type,size=size[valid,,drop=FALSE],npar=nrow(gamma.coefs))
205+
type=type,size=size[valid,,drop=FALSE],npar=nrow(beta.coefs))
206206
}
207207

208208
try_result <- try({

README.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ bibliography: assets/SCGLR.bib
1010
---
1111
<!-- File generated from README.Rmd. Changes must be done from there -->
1212

13-
# SCGLR <img src="man/figures/SCGLR_small.jpg" align="right">
13+
# SCGLR <img src="man/figures/SCGLR_small.jpg" align="right" alt="SCGLR logo">
1414

1515
[![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/SCGLR)](https://cran.r-project.org/package=SCGLR)
1616

0 commit comments

Comments
 (0)