Skip to content

Commit 1304a6c

Browse files
committed
rebuild online docs
1 parent 7d10746 commit 1304a6c

File tree

268 files changed

+11614
-5673
lines changed

Some content is hidden

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

268 files changed

+11614
-5673
lines changed

.devel/roxygen2-patch.R

+24-22
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,15 @@
1-
# Copyleft 2021-2023, Marek Gagolewski <https://www.gagolewski.com/>
2-
# Adding author and other metadata to every Rd file
1+
# Copyleft (C) 2021-2024, Marek Gagolewski <https://www.gagolewski.com>
2+
# Adding author and other metadata to every Rd file;
3+
# There is one and only one official manual. Ad- and tracker-free.
4+
# Enjoy the free internet.
35

46
library("roxygen2")
57

68
postprocess_contents <- function(contents)
79
{
810
stopifnot(is.character(contents), length(contents)==1, !is.na(contents))
911

10-
if (!stringi::stri_detect_regex(
11-
contents, "% Please edit documentation in R/.*\\\\name", dotall=TRUE)
12-
) return(contents)
13-
14-
if (!stringi::stri_detect_fixed(contents, "\\author")) {
15-
contents <- stringi::stri_paste(contents,
16-
"\\author{\n",
17-
"\\href{https://www.gagolewski.com/}{Marek Gagolewski} ",
18-
"and other contributors\n",
19-
"}\n")
20-
}
21-
22-
# There is one and only one official manual. Ad- and tracker-free.
23-
# Enjoy the free internet.
12+
author <- "\\href{https://www.gagolewski.com/}{Marek Gagolewski} and other contributors\n"
2413

2514
seealso <- stringi::stri_paste(
2615
"The official online manual of \\pkg{stringi} at ",
@@ -33,6 +22,17 @@ postprocess_contents <- function(contents)
3322
"\n"
3423
)
3524

25+
if (!stringi::stri_detect_regex(
26+
contents, "% Please edit documentation in R/.*\\\\name", dotall=TRUE) # fixed comment generated by roxugen2
27+
) return(contents)
28+
29+
if (!stringi::stri_detect_fixed(contents, "\\author")) {
30+
contents <- stringi::stri_paste(contents,
31+
"\\author{\n",
32+
author,
33+
"}\n")
34+
}
35+
3636
if (!stringi::stri_detect_fixed(contents, "\\seealso{\n")) {
3737
contents <- stringi::stri_paste(
3838
contents,
@@ -52,15 +52,15 @@ postprocess_contents <- function(contents)
5252

5353
# ########################################################################### #
5454

55-
# taken from roxygen2 7.2.1 by Hadley Wickham et al.
56-
write_if_different <- function (path, contents, href = NULL, check = TRUE)
55+
# taken from roxygen2 7.3.2 by Hadley Wickham et al.
56+
write_if_different <- function (path, contents, command=NULL, check=TRUE)
5757
{
5858
if (!file.exists(dirname(path))) {
5959
dir.create(dirname(path), showWarnings = FALSE)
6060
}
6161
name <- basename(path)
6262
if (check && !made_by_roxygen(path)) {
63-
cli::cli_warn(c("Skipping {.path {name}}", x = "It already exists and was not generated by roxygen2."))
63+
cli::cli_inform(c(x = "Skipping {.path {name}}", i = "It already exists and was not generated by roxygen2."))
6464
return(FALSE)
6565
}
6666
line_ending <- detect_line_ending(path)
@@ -75,12 +75,14 @@ write_if_different <- function (path, contents, href = NULL, check = TRUE)
7575

7676

7777
if (!str_detect(name, "^[a-zA-Z][a-zA-Z0-9_.-]*$")) {
78-
cli::cli_warn(c("Skipping {.path {name}}", x = "Invalid file name"))
78+
cli::cli_inform(c(x = "Skipping {.path {name}}", i = "Invalid file name"))
7979
FALSE
8080
}
8181
else {
82-
if (!is.null(href)) {
83-
name <- cli::style_hyperlink(name, href)
82+
if (!is.null(command)) {
83+
scheme <- "x-r-run"
84+
url <- paste0(scheme, ":", command)
85+
name <- cli::style_hyperlink(name, url)
8486
}
8587
cli::cli_inform("Writing {.path {name}}")
8688
writeBin(charToRaw(contents), path)
Binary file not shown.

.devel/sphinx/news.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
# Changelog
22

33

4+
## 1.8.4.9xxx (under development)
5+
6+
* [BUGFIX] #512: Fixed PROTECT stack imbalance in `stri_encode_from_marked`.
7+
8+
49
## 1.8.4 (2024-05-06)
510

611
* [BUILD TIME] [BUGFIX] #508: Fixed build errors on Windows
7-
(thanks to @jeoren and @kalibera).
12+
(thanks to @jeroen and @kalibera).
813

914

1015
## 1.8.3 (2023-12-10)

.devel/sphinx/rapi/about_arguments.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ If some function violates one of the following rules (for a very important reaso
1010

1111
When a character vector argument is expected, factors and other vectors coercible to characters vectors are silently converted with [`as.character`](https://stat.ethz.ch/R-manual/R-devel/library/base/html/character.html), otherwise an error is generated. Coercion from a list which does not consist of length-1 atomic vectors issues a warning.
1212

13-
When a logical, numeric, or integer vector argument is expected, factors are converted with `as.*(as.character(...))`, and other coercible vectors are converted with `as.*`, otherwise an error is generated.
13+
When a logical, numeric, or integer vector argument is expected, factors are converted with `as.*(`[`as.character`](https://stat.ethz.ch/R-manual/R-devel/library/base/html/character.html)`(...))`, and other coercible vectors are converted with `as.*`, otherwise an error is generated.
1414

1515
## Vectorization
1616

@@ -42,4 +42,4 @@ The official online manual of <span class="pkg">stringi</span> at <https://strin
4242

4343
Gagolewski M., <span class="pkg">stringi</span>: Fast and portable character string processing in R, *Journal of Statistical Software* 103(2), 2022, 1-59, [doi:10.18637/jss.v103.i02](https://doi.org/10.18637/jss.v103.i02)
4444

45-
Other stringi_general_topics: [`about_encoding`](about_encoding.md), [`about_locale`](about_locale.md), [`about_search_boundaries`](about_search_boundaries.md), [`about_search_charclass`](about_search_charclass.md), [`about_search_coll`](about_search_coll.md), [`about_search_fixed`](about_search_fixed.md), [`about_search_regex`](about_search_regex.md), [`about_search`](about_search.md), [`about_stringi`](about_stringi.md)
45+
Other stringi_general_topics: [`about_encoding`](about_encoding.md), [`about_locale`](about_locale.md), [`about_search`](about_search.md), [`about_search_boundaries`](about_search_boundaries.md), [`about_search_charclass`](about_search_charclass.md), [`about_search_coll`](about_search_coll.md), [`about_search_fixed`](about_search_fixed.md), [`about_search_regex`](about_search_regex.md), [`about_stringi`](about_stringi.md)

.devel/sphinx/rapi/about_encoding.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@ The official online manual of <span class="pkg">stringi</span> at <https://strin
9898

9999
Gagolewski M., <span class="pkg">stringi</span>: Fast and portable character string processing in R, *Journal of Statistical Software* 103(2), 2022, 1-59, [doi:10.18637/jss.v103.i02](https://doi.org/10.18637/jss.v103.i02)
100100

101-
Other stringi_general_topics: [`about_arguments`](about_arguments.md), [`about_locale`](about_locale.md), [`about_search_boundaries`](about_search_boundaries.md), [`about_search_charclass`](about_search_charclass.md), [`about_search_coll`](about_search_coll.md), [`about_search_fixed`](about_search_fixed.md), [`about_search_regex`](about_search_regex.md), [`about_search`](about_search.md), [`about_stringi`](about_stringi.md)
101+
Other stringi_general_topics: [`about_arguments`](about_arguments.md), [`about_locale`](about_locale.md), [`about_search`](about_search.md), [`about_search_boundaries`](about_search_boundaries.md), [`about_search_charclass`](about_search_charclass.md), [`about_search_coll`](about_search_coll.md), [`about_search_fixed`](about_search_fixed.md), [`about_search_regex`](about_search_regex.md), [`about_stringi`](about_stringi.md)
102102

103103
Other encoding_management: [`stri_enc_info()`](stri_enc_info.md), [`stri_enc_list()`](stri_enc_list.md), [`stri_enc_mark()`](stri_enc_mark.md), [`stri_enc_set()`](stri_enc_set.md)
104104

105-
Other encoding_detection: [`stri_enc_detect2()`](stri_enc_detect2.md), [`stri_enc_detect()`](stri_enc_detect.md), [`stri_enc_isascii()`](stri_enc_isascii.md), [`stri_enc_isutf16be()`](stri_enc_isutf16.md), [`stri_enc_isutf8()`](stri_enc_isutf8.md)
105+
Other encoding_detection: [`stri_enc_detect()`](stri_enc_detect.md), [`stri_enc_detect2()`](stri_enc_detect2.md), [`stri_enc_isascii()`](stri_enc_isascii.md), [`stri_enc_isutf16be()`](stri_enc_isutf16.md), [`stri_enc_isutf8()`](stri_enc_isutf8.md)
106106

107107
Other encoding_conversion: [`stri_enc_fromutf32()`](stri_enc_fromutf32.md), [`stri_enc_toascii()`](stri_enc_toascii.md), [`stri_enc_tonative()`](stri_enc_tonative.md), [`stri_enc_toutf32()`](stri_enc_toutf32.md), [`stri_enc_toutf8()`](stri_enc_toutf8.md), [`stri_encode()`](stri_encode.md)

.devel/sphinx/rapi/about_locale.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,6 @@ Gagolewski M., <span class="pkg">stringi</span>: Fast and portable character str
5858

5959
Other locale_management: [`stri_locale_info()`](stri_locale_info.md), [`stri_locale_list()`](stri_locale_list.md), [`stri_locale_set()`](stri_locale_set.md)
6060

61-
Other locale_sensitive: [`%s<%()`](+25s+3C+25.md), [`about_search_boundaries`](about_search_boundaries.md), [`about_search_coll`](about_search_coll.md), [`stri_compare()`](stri_compare.md), [`stri_count_boundaries()`](stri_count_boundaries.md), [`stri_duplicated()`](stri_duplicated.md), [`stri_enc_detect2()`](stri_enc_detect2.md), [`stri_extract_all_boundaries()`](stri_extract_boundaries.md), [`stri_locate_all_boundaries()`](stri_locate_boundaries.md), [`stri_opts_collator()`](stri_opts_collator.md), [`stri_order()`](stri_order.md), [`stri_rank()`](stri_rank.md), [`stri_sort_key()`](stri_sort_key.md), [`stri_sort()`](stri_sort.md), [`stri_split_boundaries()`](stri_split_boundaries.md), [`stri_trans_tolower()`](stri_trans_casemap.md), [`stri_unique()`](stri_unique.md), [`stri_wrap()`](stri_wrap.md)
61+
Other locale_sensitive: [`%s<%()`](+25s+3C+25.md), [`about_search_boundaries`](about_search_boundaries.md), [`about_search_coll`](about_search_coll.md), [`stri_compare()`](stri_compare.md), [`stri_count_boundaries()`](stri_count_boundaries.md), [`stri_duplicated()`](stri_duplicated.md), [`stri_enc_detect2()`](stri_enc_detect2.md), [`stri_extract_all_boundaries()`](stri_extract_boundaries.md), [`stri_locate_all_boundaries()`](stri_locate_boundaries.md), [`stri_opts_collator()`](stri_opts_collator.md), [`stri_order()`](stri_order.md), [`stri_rank()`](stri_rank.md), [`stri_sort()`](stri_sort.md), [`stri_sort_key()`](stri_sort_key.md), [`stri_split_boundaries()`](stri_split_boundaries.md), [`stri_trans_tolower()`](stri_trans_casemap.md), [`stri_unique()`](stri_unique.md), [`stri_wrap()`](stri_wrap.md)
6262

63-
Other stringi_general_topics: [`about_arguments`](about_arguments.md), [`about_encoding`](about_encoding.md), [`about_search_boundaries`](about_search_boundaries.md), [`about_search_charclass`](about_search_charclass.md), [`about_search_coll`](about_search_coll.md), [`about_search_fixed`](about_search_fixed.md), [`about_search_regex`](about_search_regex.md), [`about_search`](about_search.md), [`about_stringi`](about_stringi.md)
63+
Other stringi_general_topics: [`about_arguments`](about_arguments.md), [`about_encoding`](about_encoding.md), [`about_search`](about_search.md), [`about_search_boundaries`](about_search_boundaries.md), [`about_search_charclass`](about_search_charclass.md), [`about_search_coll`](about_search_coll.md), [`about_search_fixed`](about_search_fixed.md), [`about_search_regex`](about_search_regex.md), [`about_stringi`](about_stringi.md)

.devel/sphinx/rapi/about_search.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,16 @@ Other search_charclass: [`about_search_charclass`](about_search_charclass.md), [
5858

5959
Other search_detect: [`stri_detect()`](stri_detect.md), [`stri_startswith()`](stri_startsendswith.md)
6060

61-
Other search_count: [`stri_count_boundaries()`](stri_count_boundaries.md), [`stri_count()`](stri_count.md)
61+
Other search_count: [`stri_count()`](stri_count.md), [`stri_count_boundaries()`](stri_count_boundaries.md)
6262

63-
Other search_locate: [`stri_locate_all_boundaries()`](stri_locate_boundaries.md), [`stri_locate_all()`](stri_locate.md)
63+
Other search_locate: [`stri_locate_all()`](stri_locate.md), [`stri_locate_all_boundaries()`](stri_locate_boundaries.md)
6464

6565
Other search_replace: [`stri_replace_all()`](stri_replace.md), [`stri_replace_rstr()`](stri_replace_rstr.md), [`stri_trim_both()`](stri_trim.md)
6666

67-
Other search_split: [`stri_split_boundaries()`](stri_split_boundaries.md), [`stri_split_lines()`](stri_split_lines.md), [`stri_split()`](stri_split.md)
67+
Other search_split: [`stri_split()`](stri_split.md), [`stri_split_boundaries()`](stri_split_boundaries.md), [`stri_split_lines()`](stri_split_lines.md)
6868

6969
Other search_subset: [`stri_subset()`](stri_subset.md)
7070

71-
Other search_extract: [`stri_extract_all_boundaries()`](stri_extract_boundaries.md), [`stri_extract_all()`](stri_extract.md), [`stri_match_all()`](stri_match.md)
71+
Other search_extract: [`stri_extract_all()`](stri_extract.md), [`stri_extract_all_boundaries()`](stri_extract_boundaries.md), [`stri_match_all()`](stri_match.md)
7272

7373
Other stringi_general_topics: [`about_arguments`](about_arguments.md), [`about_encoding`](about_encoding.md), [`about_locale`](about_locale.md), [`about_search_boundaries`](about_search_boundaries.md), [`about_search_charclass`](about_search_charclass.md), [`about_search_coll`](about_search_coll.md), [`about_search_fixed`](about_search_fixed.md), [`about_search_regex`](about_search_regex.md), [`about_stringi`](about_stringi.md)

.devel/sphinx/rapi/about_search_boundaries.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ The official online manual of <span class="pkg">stringi</span> at <https://strin
4646

4747
Gagolewski M., <span class="pkg">stringi</span>: Fast and portable character string processing in R, *Journal of Statistical Software* 103(2), 2022, 1-59, [doi:10.18637/jss.v103.i02](https://doi.org/10.18637/jss.v103.i02)
4848

49-
Other locale_sensitive: [`%s<%()`](+25s+3C+25.md), [`about_locale`](about_locale.md), [`about_search_coll`](about_search_coll.md), [`stri_compare()`](stri_compare.md), [`stri_count_boundaries()`](stri_count_boundaries.md), [`stri_duplicated()`](stri_duplicated.md), [`stri_enc_detect2()`](stri_enc_detect2.md), [`stri_extract_all_boundaries()`](stri_extract_boundaries.md), [`stri_locate_all_boundaries()`](stri_locate_boundaries.md), [`stri_opts_collator()`](stri_opts_collator.md), [`stri_order()`](stri_order.md), [`stri_rank()`](stri_rank.md), [`stri_sort_key()`](stri_sort_key.md), [`stri_sort()`](stri_sort.md), [`stri_split_boundaries()`](stri_split_boundaries.md), [`stri_trans_tolower()`](stri_trans_casemap.md), [`stri_unique()`](stri_unique.md), [`stri_wrap()`](stri_wrap.md)
49+
Other locale_sensitive: [`%s<%()`](+25s+3C+25.md), [`about_locale`](about_locale.md), [`about_search_coll`](about_search_coll.md), [`stri_compare()`](stri_compare.md), [`stri_count_boundaries()`](stri_count_boundaries.md), [`stri_duplicated()`](stri_duplicated.md), [`stri_enc_detect2()`](stri_enc_detect2.md), [`stri_extract_all_boundaries()`](stri_extract_boundaries.md), [`stri_locate_all_boundaries()`](stri_locate_boundaries.md), [`stri_opts_collator()`](stri_opts_collator.md), [`stri_order()`](stri_order.md), [`stri_rank()`](stri_rank.md), [`stri_sort()`](stri_sort.md), [`stri_sort_key()`](stri_sort_key.md), [`stri_split_boundaries()`](stri_split_boundaries.md), [`stri_trans_tolower()`](stri_trans_casemap.md), [`stri_unique()`](stri_unique.md), [`stri_wrap()`](stri_wrap.md)
5050

5151
Other text_boundaries: [`about_search`](about_search.md), [`stri_count_boundaries()`](stri_count_boundaries.md), [`stri_extract_all_boundaries()`](stri_extract_boundaries.md), [`stri_locate_all_boundaries()`](stri_locate_boundaries.md), [`stri_opts_brkiter()`](stri_opts_brkiter.md), [`stri_split_boundaries()`](stri_split_boundaries.md), [`stri_split_lines()`](stri_split_lines.md), [`stri_trans_tolower()`](stri_trans_casemap.md), [`stri_wrap()`](stri_wrap.md)
5252

53-
Other stringi_general_topics: [`about_arguments`](about_arguments.md), [`about_encoding`](about_encoding.md), [`about_locale`](about_locale.md), [`about_search_charclass`](about_search_charclass.md), [`about_search_coll`](about_search_coll.md), [`about_search_fixed`](about_search_fixed.md), [`about_search_regex`](about_search_regex.md), [`about_search`](about_search.md), [`about_stringi`](about_stringi.md)
53+
Other stringi_general_topics: [`about_arguments`](about_arguments.md), [`about_encoding`](about_encoding.md), [`about_locale`](about_locale.md), [`about_search`](about_search.md), [`about_search_charclass`](about_search_charclass.md), [`about_search_coll`](about_search_coll.md), [`about_search_fixed`](about_search_fixed.md), [`about_search_regex`](about_search_regex.md), [`about_stringi`](about_stringi.md)

.devel/sphinx/rapi/about_search_charclass.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -450,4 +450,4 @@ Gagolewski M., <span class="pkg">stringi</span>: Fast and portable character str
450450

451451
Other search_charclass: [`about_search`](about_search.md), [`stri_trim_both()`](stri_trim.md)
452452

453-
Other stringi_general_topics: [`about_arguments`](about_arguments.md), [`about_encoding`](about_encoding.md), [`about_locale`](about_locale.md), [`about_search_boundaries`](about_search_boundaries.md), [`about_search_coll`](about_search_coll.md), [`about_search_fixed`](about_search_fixed.md), [`about_search_regex`](about_search_regex.md), [`about_search`](about_search.md), [`about_stringi`](about_stringi.md)
453+
Other stringi_general_topics: [`about_arguments`](about_arguments.md), [`about_encoding`](about_encoding.md), [`about_locale`](about_locale.md), [`about_search`](about_search.md), [`about_search_boundaries`](about_search_boundaries.md), [`about_search_coll`](about_search_coll.md), [`about_search_fixed`](about_search_fixed.md), [`about_search_regex`](about_search_regex.md), [`about_stringi`](about_stringi.md)

.devel/sphinx/rapi/about_search_coll.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ Gagolewski M., <span class="pkg">stringi</span>: Fast and portable character str
3232

3333
Other search_coll: [`about_search`](about_search.md), [`stri_opts_collator()`](stri_opts_collator.md)
3434

35-
Other locale_sensitive: [`%s<%()`](+25s+3C+25.md), [`about_locale`](about_locale.md), [`about_search_boundaries`](about_search_boundaries.md), [`stri_compare()`](stri_compare.md), [`stri_count_boundaries()`](stri_count_boundaries.md), [`stri_duplicated()`](stri_duplicated.md), [`stri_enc_detect2()`](stri_enc_detect2.md), [`stri_extract_all_boundaries()`](stri_extract_boundaries.md), [`stri_locate_all_boundaries()`](stri_locate_boundaries.md), [`stri_opts_collator()`](stri_opts_collator.md), [`stri_order()`](stri_order.md), [`stri_rank()`](stri_rank.md), [`stri_sort_key()`](stri_sort_key.md), [`stri_sort()`](stri_sort.md), [`stri_split_boundaries()`](stri_split_boundaries.md), [`stri_trans_tolower()`](stri_trans_casemap.md), [`stri_unique()`](stri_unique.md), [`stri_wrap()`](stri_wrap.md)
35+
Other locale_sensitive: [`%s<%()`](+25s+3C+25.md), [`about_locale`](about_locale.md), [`about_search_boundaries`](about_search_boundaries.md), [`stri_compare()`](stri_compare.md), [`stri_count_boundaries()`](stri_count_boundaries.md), [`stri_duplicated()`](stri_duplicated.md), [`stri_enc_detect2()`](stri_enc_detect2.md), [`stri_extract_all_boundaries()`](stri_extract_boundaries.md), [`stri_locate_all_boundaries()`](stri_locate_boundaries.md), [`stri_opts_collator()`](stri_opts_collator.md), [`stri_order()`](stri_order.md), [`stri_rank()`](stri_rank.md), [`stri_sort()`](stri_sort.md), [`stri_sort_key()`](stri_sort_key.md), [`stri_split_boundaries()`](stri_split_boundaries.md), [`stri_trans_tolower()`](stri_trans_casemap.md), [`stri_unique()`](stri_unique.md), [`stri_wrap()`](stri_wrap.md)
3636

37-
Other stringi_general_topics: [`about_arguments`](about_arguments.md), [`about_encoding`](about_encoding.md), [`about_locale`](about_locale.md), [`about_search_boundaries`](about_search_boundaries.md), [`about_search_charclass`](about_search_charclass.md), [`about_search_fixed`](about_search_fixed.md), [`about_search_regex`](about_search_regex.md), [`about_search`](about_search.md), [`about_stringi`](about_stringi.md)
37+
Other stringi_general_topics: [`about_arguments`](about_arguments.md), [`about_encoding`](about_encoding.md), [`about_locale`](about_locale.md), [`about_search`](about_search.md), [`about_search_boundaries`](about_search_boundaries.md), [`about_search_charclass`](about_search_charclass.md), [`about_search_fixed`](about_search_fixed.md), [`about_search_regex`](about_search_regex.md), [`about_stringi`](about_stringi.md)

0 commit comments

Comments
 (0)