-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Catch doc NOTES caught by WinBuilder * typo * Throttle to single thread in tests * 0.1.0 * CRAN comments and submission * Also control magick nthreads - OpenMP everywhere... * roxygen2 ver * Quote package names * typo * tweak * Resubmit
- Loading branch information
1 parent
f22e541
commit e36ab94
Showing
11 changed files
with
108 additions
and
17 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 |
---|---|---|
|
@@ -9,3 +9,5 @@ | |
^\.github$ | ||
^TESTING$ | ||
^.vscode$ | ||
^cran-comments.md | ||
^CRAN-SUBMISSION$ |
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,3 @@ | ||
Version: 0.1.0 | ||
Date: 2023-12-13 22:31:45 UTC | ||
SHA: e497f7677d32404a1aed99860c8e30244ad8038b |
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
# ggfixest 0.0.3.9001 (development version) | ||
# ggfixest 0.1.0 | ||
|
||
First CRAN release! | ||
|
||
## New features | ||
|
||
|
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
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,17 @@ | ||
## Overview | ||
|
||
`ggfixest` 0.1.0 is a new CRAN submission. | ||
|
||
- I have addressed the package quoting issue. | ||
- The CPU time vs. elapsed time issue should now be resolved in the test suite. | ||
(Single threading is explicitly imposed for data.table, fixest, and magick.) | ||
|
||
## Test environments | ||
|
||
* Local: Arch Linux | ||
* GitHub Actions (ubuntu-22.04): oldrel-1, release, devel | ||
* Win Builder | ||
|
||
## R CMD check results | ||
|
||
0 errors | 0 warnings | 0 notes |
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,24 @@ | ||
library(tinytest) | ||
|
||
exit_if_not(any(grepl("_R_CHECK", names(Sys.getenv()), fixed = TRUE))) | ||
|
||
# fixest | ||
if ( requireNamespace("fixest", quietly=TRUE) ){ | ||
library(fixest) | ||
nfx = getFixest_nthreads() | ||
expect_equal(nfx, 1, info = "Check fixest threads") | ||
} | ||
|
||
# data.table | ||
if (requireNamespace("data.table", quietly = TRUE)) { | ||
library(data.table) | ||
nDT = getDTthreads() | ||
expect_equal(nDT, 1, info = "Check data.table threads") | ||
} | ||
|
||
# magick | ||
if (requireNamespace("magick", quietly = TRUE)) { | ||
library(magick) | ||
nmg = magick:::magick_threads(1) | ||
expect_equal(nmg, 1, info = "Check magick threads") | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,5 +1,31 @@ | ||
## Throttle CPU threads if R CMD check (for CRAN) | ||
|
||
if (any(grepl("_R_CHECK", names(Sys.getenv()), fixed = TRUE))) { | ||
# fixest | ||
if (requireNamespace("fixest", quietly = TRUE)) { | ||
library(fixest) | ||
setFixest_nthreads(1) | ||
} | ||
|
||
# data.table | ||
if (requireNamespace("data.table", quietly = TRUE)) { | ||
library(data.table) | ||
setDTthreads(1) | ||
} | ||
|
||
# magick | ||
if (requireNamespace("magick", quietly = TRUE)) { | ||
library(magick) | ||
magick:::magick_threads(1) | ||
} | ||
} | ||
|
||
|
||
# Run tinytest suite | ||
|
||
if ( requireNamespace("tinytest", quietly=TRUE) ){ | ||
|
||
tinytest::test_package("ggfixest") | ||
|
||
} | ||
|