Skip to content

Commit 1a2ace3

Browse files
committed
make links lowercase to make pkgdown happy
1 parent bea9a45 commit 1a2ace3

File tree

5 files changed

+14
-7
lines changed

5 files changed

+14
-7
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Suggests: bit64 (>= 4.0.0), bit (>= 4.0.4), R.utils, xts, zoo (>= 1.8-1), yaml,
77
Enhances: knitr, xfun
88
Description: Fast aggregation of large data (e.g. 100GB in RAM), fast ordered joins, fast add/modify/delete of columns by group using no copies at all, list columns, friendly and fast character-separated-value read/write. Offers a natural and flexible syntax, for faster development.
99
License: MPL-2.0 | file LICENSE
10-
URL: https://r-datatable.com, https://Rdatatable.gitlab.io/data.table, https://github.com/Rdatatable/data.table
10+
URL: https://r-datatable.com, https://rdatatable.gitlab.io/data.table, https://github.com/Rdatatable/data.table
1111
BugReports: https://github.com/Rdatatable/data.table/issues
1212
VignetteBuilder: litedown
1313
Encoding: UTF-8

R/devel.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ dcf.repo = function(pkg, repo, field, type) {
1717
dcf[dcf[,"Package"]==pkg, field][[1L]]
1818
}
1919

20-
update_dev_pkg = function(pkg="data.table", repo="https://Rdatatable.gitlab.io/data.table", field="Revision", type=getOption("pkgType"), lib=NULL, ...) {
20+
update_dev_pkg = function(pkg="data.table", repo="https://rdatatable.gitlab.io/data.table", field="Revision", type=getOption("pkgType"), lib=NULL, ...) {
2121
# this works for any package, not just data.table
2222
# perform package upgrade when new Revision present
2323
stopifnot(is.character(pkg), length(pkg)==1L, !is.na(pkg),
@@ -50,7 +50,7 @@ update_dev_pkg = function(pkg="data.table", repo="https://Rdatatable.gitlab.io/d
5050
.git = function(quiet=FALSE, lib.loc=NULL) {
5151
ans = unname(read.dcf(system.file("DESCRIPTION", package="data.table", lib.loc=lib.loc, mustWork=TRUE), fields="Revision")[, "Revision"])
5252
if (!quiet && is.na(ans))
53-
catf("Git revision is not available. Most likely data.table was installed from CRAN or local archive.\nGit revision is available when installing from our repositories 'https://Rdatatable.gitlab.io/data.table' and 'https://Rdatatable.github.io/data.table'.\n")
53+
catf("Git revision is not available. Most likely data.table was installed from CRAN or local archive.\nGit revision is available when installing from our repositories 'https://rdatatable.gitlab.io/data.table' and 'https://Rdatatable.github.io/data.table'.\n")
5454
ans
5555
}
5656

vignettes/_translation_links.R

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
# build a link list of alternative languages (may be character(0))
22
# idea is to look like 'Other languages: en | fr | de'
33
.write.translation.links <- function(fmt) {
4+
# Check if we're in a litedown context
5+
input_file = litedown::get_context("input")
6+
if (is.null(input_file) || !is.character(input_file) || length(input_file) == 0) {
7+
# Not in litedown context (e.g., being rendered by rmarkdown/pkgdown)
8+
return("")
9+
}
10+
411
url = "https://rdatatable.gitlab.io/data.table/articles"
5-
path = dirname(litedown::get_context("input"))
12+
path = dirname(input_file)
613
if (basename(path) == "vignettes") {
714
lang = "en"
815
} else {
@@ -11,7 +18,7 @@
1118
}
1219
translation = dir(path,
1320
recursive = TRUE,
14-
pattern = glob2rx(litedown::get_context("input"))
21+
pattern = glob2rx(input_file)
1522
)
1623
transl_lang = ifelse(dirname(translation) == ".", "en", dirname(translation))
1724
block = if (!all(transl_lang == lang)) {

vignettes/datatable-sd-usage.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ Teams[ , .SD[which.max(R)], by = teamID]
234234

235235
Note that this approach can of course be combined with `.SDcols` to return only portions of the `data.table` for each `.SD` (with the caveat that `.SDcols` should be fixed across the various subsets).
236236

237-
_NB_: `.SD[1L]` is currently optimized by [_`GForce`_](https://Rdatatable.gitlab.io/data.table/library/data.table/html/datatable-optimize.html) ([see also](https://stackoverflow.com/questions/22137591/about-gforce-in-data-table-1-9-2)), `data.table` internals which massively speed up the most common grouped operations like `sum` or `mean` -- see `?GForce` for more details and keep an eye on/voice support for feature improvement requests for updates on this front: [1](https://github.com/Rdatatable/data.table/issues/735), [2](https://github.com/Rdatatable/data.table/issues/2778), [3](https://github.com/Rdatatable/data.table/issues/523), [4](https://github.com/Rdatatable/data.table/issues/971), [5](https://github.com/Rdatatable/data.table/issues/1197), [6](https://github.com/Rdatatable/data.table/issues/1414).
237+
_NB_: `.SD[1L]` is currently optimized by [_`GForce`_](https://rdatatable.gitlab.io/data.table/library/data.table/html/datatable-optimize.html) ([see also](https://stackoverflow.com/questions/22137591/about-gforce-in-data-table-1-9-2)), `data.table` internals which massively speed up the most common grouped operations like `sum` or `mean` -- see `?GForce` for more details and keep an eye on/voice support for feature improvement requests for updates on this front: [1](https://github.com/Rdatatable/data.table/issues/735), [2](https://github.com/Rdatatable/data.table/issues/2778), [3](https://github.com/Rdatatable/data.table/issues/523), [4](https://github.com/Rdatatable/data.table/issues/971), [5](https://github.com/Rdatatable/data.table/issues/1197), [6](https://github.com/Rdatatable/data.table/issues/1414).
238238

239239
## Grouped Regression
240240

vignettes/fr/datatable-sd-usage.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ Teams[ , .SD[which.max(R)], by = teamID]
234234

235235
Notez que cette approche peut bien sûr être combinée avec `.SDcols` pour renvoyer uniquement les portions de `data.table` pour chaque `.SD` (avec la mise en garde que `.SDcols` soit initialisé en fonction des différents sous-ensembles)
236236

237-
*NB* : `.SD[1L]` est actuellement optimisé par [*`GForce`*](https://Rdatatable.gitlab.io/data.table/library/data.table/html/datatable-optimize.html) ([voir aussi](https://stackoverflow.com/questions/22137591/about-gforce-in-data-table-1-9-2)), `data.table` interne qui accélère massivement les opérations groupées les plus courantes comme `sum` ou `mean` -- voir ` ?GForce` pour plus de détails et gardez un oeil sur le support pour les demandes d'amélioration des fonctionnalités pour les mises à jour sur ce front : [1](https://github.com/Rdatatable/data.table/issues/735), [2](https://github.com/Rdatatable/data.table/issues/2778), [3](https://github.com/Rdatatable/data.table/issues/523), [4](https://github.com/Rdatatable/data.table/issues/971), [5](https://github.com/Rdatatable/data.table/issues/1197), [6](https://github.com/Rdatatable/data.table/issues/1414)
237+
*NB* : `.SD[1L]` est actuellement optimisé par [*`GForce`*](https://rdatatable.gitlab.io/data.table/library/data.table/html/datatable-optimize.html) ([voir aussi](https://stackoverflow.com/questions/22137591/about-gforce-in-data-table-1-9-2)), `data.table` interne qui accélère massivement les opérations groupées les plus courantes comme `sum` ou `mean` -- voir ` ?GForce` pour plus de détails et gardez un oeil sur le support pour les demandes d'amélioration des fonctionnalités pour les mises à jour sur ce front : [1](https://github.com/Rdatatable/data.table/issues/735), [2](https://github.com/Rdatatable/data.table/issues/2778), [3](https://github.com/Rdatatable/data.table/issues/523), [4](https://github.com/Rdatatable/data.table/issues/971), [5](https://github.com/Rdatatable/data.table/issues/1197), [6](https://github.com/Rdatatable/data.table/issues/1414)
238238

239239
## Régression groupée
240240

0 commit comments

Comments
 (0)