Skip to content

Commit a9e8587

Browse files
committed
bump pkg to v1.0.0; run revdepcheck
1 parent 06e82c7 commit a9e8587

File tree

1,405 files changed

+375243
-105
lines changed

Some content is hidden

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

1,405 files changed

+375243
-105
lines changed

DESCRIPTION

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ Package: matlib
22
Type: Package
33
Title: Matrix Functions for Teaching and Learning Linear Algebra and
44
Multivariate Statistics
5-
Version: 0.9.95
6-
Date: 2024-09-08
5+
Version: 1.0.0
6+
Date: 2024-09-27
77
Authors@R: c(person(given = "Michael", family = "Friendly",
88
role=c("aut", "cre"), email="[email protected]",
99
comment=c(ORCID="0000-0002-3237-0941")),

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
**Matrix Functions for Teaching and Learning Linear Algebra and Multivariate Statistics**, http://friendly.github.io/matlib/
1515

16-
Version 0.9.9
16+
Version 1.0.0
1717

1818
These functions were originally designed for tutorial purposes in teaching & learning matrix algebra
1919
ideas using R. In some cases, functions are provided for concepts or computations available

cran-comments.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ There were no ERRORs or WARNINGs or NOTEs.
3131

3232
## revdepcheck results
3333

34-
We checked 9 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package.
34+
We checked 8 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package.
3535

3636
* We saw 0 new problems
37+
* We failed to check 0 packages
3738

3839

3940

dev/Prepare_for_CRAN.R

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Prepare for CRAN ----
22

3+
# keep rgl from popping up windows
4+
Sys.setenv(RGL_USE_NULL = TRUE)
5+
36
# Update dependencies in DESCRIPTION
47
# install.packages('attachment', repos = 'https://thinkr-open.r-universe.dev')
58
attachment::att_amend_desc()
@@ -33,9 +36,11 @@ urlchecker::url_update()
3336

3437
# check on other distributions
3538
# _rhub
39+
# This method is deprecated. See: ?rhubv2
3640
devtools::check_rhub()
3741
rhub::check_on_windows(check_args = "--force-multiarch")
3842
rhub::check_on_solaris()
43+
3944
# _win devel CRAN
4045
devtools::check_win_devel()
4146
# _macos CRAN
@@ -49,7 +54,8 @@ usethis::use_build_ignore("revdep/")
4954

5055
devtools::revdep()
5156
library(revdepcheck)
52-
# In another session
57+
revdepcheck::revdep_check(num_workers = 4)
58+
# Or, In another session
5359
id <- rstudioapi::terminalExecute("Rscript -e 'revdepcheck::revdep_check(num_workers = 4)'")
5460
rstudioapi::terminalKill(id)
5561
# See outputs

revdep/README.md

+30-27
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,38 @@
11
# Platform
22

3-
|field |value |
4-
|:--------|:--------------------------------------------------------|
5-
|version |R version 4.2.1 (2022-06-23 ucrt) |
6-
|os |Windows 7 x64 (build 7601) SP 1 |
7-
|system |x86_64, mingw32 |
8-
|ui |RStudio |
9-
|language |(EN) |
10-
|collate |English_United States.1252 |
11-
|ctype |English_United States.1252 |
12-
|tz |America/New_York |
13-
|date |2022-12-07 |
14-
|rstudio |2022.07.2+576 Spotted Wakerobin (desktop) |
15-
|pandoc |1.16 @ C:\Users\friendly\AppData\Local\Pandoc\pandoc.exe |
3+
|field |value |
4+
|:--------|:-------------------------------------------|
5+
|version |R version 4.4.1 (2024-06-14 ucrt) |
6+
|os |Windows 10 x64 (build 19044) |
7+
|system |x86_64, mingw32 |
8+
|ui |RStudio |
9+
|language |(EN) |
10+
|collate |English_Canada.utf8 |
11+
|ctype |English_Canada.utf8 |
12+
|tz |America/Toronto |
13+
|date |2024-09-27 |
14+
|rstudio |2023.06.1+524 Mountain Hydrangea (desktop) |
15+
|pandoc |3.1.2 @ C:/PROGRA~1/Pandoc/ (via rmarkdown) |
1616

1717
# Dependencies
1818

19-
|package |old |new |<U+0394> |
20-
|:--------|:-----|:------|:--|
21-
|matlib |0.9.5 |0.9.6 |* |
22-
|cli |NA |3.4.1 |* |
23-
|digest |NA |0.6.30 |* |
24-
|processx |NA |3.8.0 |* |
25-
|ps |NA |1.7.2 |* |
26-
|vctrs |NA |0.5.1 |* |
19+
|package |old |new |Δ |
20+
|:--------------|:-----|:---------|:--|
21+
|matlib |0.9.8 |0.9.95 |* |
22+
|abind |NA |1.4-8 |* |
23+
|broom |NA |1.0.7 |* |
24+
|car |NA |3.1-3 |* |
25+
|cpp11 |NA |0.5.0 |* |
26+
|Deriv |NA |4.1.6 |* |
27+
|digest |NA |0.6.37 |* |
28+
|evaluate |NA |1.0.0 |* |
29+
|jsonlite |NA |1.8.9 |* |
30+
|microbenchmark |NA |1.5.0 |* |
31+
|minqa |NA |1.2.8 |* |
32+
|RcppEigen |NA |0.3.4.0.2 |* |
33+
|rmarkdown |NA |2.28 |* |
34+
|tinytex |NA |0.53 |* |
35+
|xfun |NA |0.47 |* |
2736

2837
# Revdeps
2938

30-
## Failed to check (1)
31-
32-
|package |version |error |warning |note |
33-
|:-------|:-------|:-----|:-------|:----|
34-
|MIIPW |0.1.0 |1 | | |
35-
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
* using log directory 'C:/Dropbox/R/projects/matlib/revdep/checks/DIDmultiplegtDYN/new/DIDmultiplegtDYN.Rcheck'
2+
* using R version 4.4.1 (2024-06-14 ucrt)
3+
* using platform: x86_64-w64-mingw32
4+
* R was compiled by
5+
gcc.exe (GCC) 13.2.0
6+
GNU Fortran (GCC) 13.2.0
7+
* running under: Windows 10 x64 (build 19044)
8+
* using session charset: UTF-8
9+
* using options '--no-manual --no-build-vignettes'
10+
* checking for file 'DIDmultiplegtDYN/DESCRIPTION' ... OK
11+
* this is package 'DIDmultiplegtDYN' version '2.0.0'
12+
* package encoding: UTF-8
13+
* checking package namespace information ... OK
14+
* checking package dependencies ... OK
15+
* checking if this is a source package ... OK
16+
* checking if there is a namespace ... OK
17+
* checking for executable files ... OK
18+
* checking for hidden files and directories ... OK
19+
* checking for portable file names ... OK
20+
* checking whether package 'DIDmultiplegtDYN' can be installed ... OK
21+
* checking installed package size ... OK
22+
* checking package directory ... OK
23+
* checking DESCRIPTION meta-information ... OK
24+
* checking top-level files ... OK
25+
* checking for left-over files ... OK
26+
* checking index information ... OK
27+
* checking package subdirectories ... OK
28+
* checking code files for non-ASCII characters ... OK
29+
* checking R files for syntax errors ... OK
30+
* checking whether the package can be loaded ... OK
31+
* checking whether the package can be loaded with stated dependencies ... OK
32+
* checking whether the package can be unloaded cleanly ... OK
33+
* checking whether the namespace can be loaded with stated dependencies ... OK
34+
* checking whether the namespace can be unloaded cleanly ... OK
35+
* checking loading without being on the library search path ... OK
36+
* checking dependencies in R code ... OK
37+
* checking S3 generic/method consistency ... OK
38+
* checking replacement functions ... OK
39+
* checking foreign function calls ... OK
40+
* checking R code for possible problems ... OK
41+
* checking Rd files ... OK
42+
* checking Rd metadata ... OK
43+
* checking Rd cross-references ... OK
44+
* checking for missing documentation entries ... OK
45+
* checking for code/documentation mismatches ... OK
46+
* checking Rd \usage sections ... OK
47+
* checking Rd contents ... OK
48+
* checking for unstated dependencies in examples ... OK
49+
* checking examples ... OK
50+
* DONE
51+
Status: OK
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
* installing *source* package 'DIDmultiplegtDYN' ...
2+
** package 'DIDmultiplegtDYN' successfully unpacked and MD5 sums checked
3+
** using staged installation
4+
** R
5+
** byte-compile and prepare package for lazy loading
6+
** help
7+
*** installing help indices
8+
** building package indices
9+
** testing if installed package can be loaded from temporary location
10+
** testing if installed package can be loaded from final location
11+
** testing if installed package keeps a record of temporary installation path
12+
* DONE (DIDmultiplegtDYN)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
pkgname <- "DIDmultiplegtDYN"
2+
source(file.path(R.home("share"), "R", "examples-header.R"))
3+
options(warn = 1)
4+
options(pager = "console")
5+
library('DIDmultiplegtDYN')
6+
7+
base::assign(".oldSearch", base::search(), pos = 'CheckExEnv')
8+
base::assign(".old_wd", base::getwd(), pos = 'CheckExEnv')
9+
cleanEx()
10+
nameEx("did_multiplegt_dyn")
11+
### * did_multiplegt_dyn
12+
13+
flush(stderr()); flush(stdout())
14+
15+
### Name: did_multiplegt_dyn
16+
### Title: Core function for did_multiplegt_dyn
17+
### Aliases: did_multiplegt_dyn
18+
19+
### ** Examples
20+
21+
# In the following example, we use data from Favara and Imbs (2015).
22+
# The dataset can be downloaded from GitHub:
23+
repo <- "chaisemartinPackages/ApplicationData/main"
24+
file <- "favara_imbs_did_multiplegt_dyn.dta"
25+
url <- paste("https://raw.githubusercontent.com", repo, file, sep = "/")
26+
favara_imbs <- haven::read_dta(url)
27+
28+
# Estimating 3 non-normalized event-study effects and two placebo
29+
# effects of banking deregulations on loans volume:
30+
summary(did_multiplegt_dyn(
31+
df = favara_imbs,
32+
outcome = "Dl_vloans_b",
33+
group = "county",
34+
time = "year",
35+
treatment = "inter_bra",
36+
effects = 2,
37+
placebo = 1,
38+
cluster = "state_n",
39+
graph_off = TRUE
40+
))
41+
42+
# Please note that some of the standard errors displayed above could differ from those
43+
# reported in de Chaisemartin and D'Haultfoeuille (2020b) due to coverage-improving
44+
# changes to the variance estimator.
45+
46+
# See the did_multiplegt_dyn GitHub page for further examples and details.
47+
48+
49+
50+
### * <FOOTER>
51+
###
52+
cleanEx()
53+
options(digits = 7L)
54+
base::cat("Time elapsed: ", proc.time() - base::get("ptime", pos = 'CheckExEnv'),"\n")
55+
grDevices::dev.off()
56+
###
57+
### Local variables: ***
58+
### mode: outline-minor ***
59+
### outline-regexp: "\\(> \\)?### [*]+" ***
60+
### End: ***
61+
quit('no')
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
2+
R version 4.4.1 (2024-06-14 ucrt) -- "Race for Your Life"
3+
Copyright (C) 2024 The R Foundation for Statistical Computing
4+
Platform: x86_64-w64-mingw32/x64
5+
6+
R is free software and comes with ABSOLUTELY NO WARRANTY.
7+
You are welcome to redistribute it under certain conditions.
8+
Type 'license()' or 'licence()' for distribution details.
9+
10+
Natural language support but running in an English locale
11+
12+
R is a collaborative project with many contributors.
13+
Type 'contributors()' for more information and
14+
'citation()' on how to cite R or R packages in publications.
15+
16+
Type 'demo()' for some demos, 'help()' for on-line help, or
17+
'help.start()' for an HTML browser interface to help.
18+
Type 'q()' to quit R.
19+
20+
> pkgname <- "DIDmultiplegtDYN"
21+
> source(file.path(R.home("share"), "R", "examples-header.R"))
22+
> options(warn = 1)
23+
> options(pager = "console")
24+
> library('DIDmultiplegtDYN')
25+
>
26+
> base::assign(".oldSearch", base::search(), pos = 'CheckExEnv')
27+
> base::assign(".old_wd", base::getwd(), pos = 'CheckExEnv')
28+
> cleanEx()
29+
> nameEx("did_multiplegt_dyn")
30+
> ### * did_multiplegt_dyn
31+
>
32+
> flush(stderr()); flush(stdout())
33+
>
34+
> ### Name: did_multiplegt_dyn
35+
> ### Title: Core function for did_multiplegt_dyn
36+
> ### Aliases: did_multiplegt_dyn
37+
>
38+
> ### ** Examples
39+
>
40+
> # In the following example, we use data from Favara and Imbs (2015).
41+
> # The dataset can be downloaded from GitHub:
42+
> repo <- "chaisemartinPackages/ApplicationData/main"
43+
> file <- "favara_imbs_did_multiplegt_dyn.dta"
44+
> url <- paste("https://raw.githubusercontent.com", repo, file, sep = "/")
45+
> favara_imbs <- haven::read_dta(url)
46+
>
47+
> # Estimating 3 non-normalized event-study effects and two placebo
48+
> # effects of banking deregulations on loans volume:
49+
> summary(did_multiplegt_dyn(
50+
+ df = favara_imbs,
51+
+ outcome = "Dl_vloans_b",
52+
+ group = "county",
53+
+ time = "year",
54+
+ treatment = "inter_bra",
55+
+ effects = 2,
56+
+ placebo = 1,
57+
+ cluster = "state_n",
58+
+ graph_off = TRUE
59+
+ ))
60+
61+
----------------------------------------------------------------------
62+
Estimation of treatment effects: Event-study effects
63+
----------------------------------------------------------------------
64+
Estimate SE LB CI UB CI N Switchers
65+
Effect_1 0.04348 0.03354 -0.02226 0.10922 3,810 905
66+
Effect_2 0.03871 0.03936 -0.03843 0.11585 2,990 905
67+
68+
Test of joint nullity of the effects : p-value = 0.4316
69+
----------------------------------------------------------------------
70+
Average cumulative (total) effect per treatment unit
71+
----------------------------------------------------------------------
72+
Estimate SE LB CI UB CI N Switchers
73+
0.01869 0.01554 -0.01176 0.04914 5,102 1,810
74+
Average number of time periods over which a treatment effect is accumulated: 1.5010
75+
76+
----------------------------------------------------------------------
77+
Testing the parallel trends and no anticipation assumptions
78+
----------------------------------------------------------------------
79+
Estimate SE LB CI UB CI N Switchers
80+
0.05481 0.04593 -0.03522 0.14484 2,777 896
81+
82+
83+
84+
85+
The development of this package was funded by the European Union.
86+
ERC REALLYCREDIBLE - GA N. 101043899
87+
>
88+
> # Please note that some of the standard errors displayed above could differ from those
89+
> # reported in de Chaisemartin and D'Haultfoeuille (2020b) due to coverage-improving
90+
> # changes to the variance estimator.
91+
>
92+
> # See the did_multiplegt_dyn GitHub page for further examples and details.
93+
>
94+
>
95+
>
96+
> ### * <FOOTER>
97+
> ###
98+
> cleanEx()
99+
> options(digits = 7L)
100+
> base::cat("Time elapsed: ", proc.time() - base::get("ptime", pos = 'CheckExEnv'),"\n")
101+
Time elapsed: 15.89 4.61 20.73 NA NA
102+
> grDevices::dev.off()
103+
null device
104+
1
105+
> ###
106+
> ### Local variables: ***
107+
> ### mode: outline-minor ***
108+
> ### outline-regexp: "\\(> \\)?### [*]+" ***
109+
> ### End: ***
110+
> quit('no')

0 commit comments

Comments
 (0)