Skip to content

Commit 77ed4b1

Browse files
Use \code for code (#6946)
* Use \code for code * more in ?foverlaps * Also for datatable.optimize
1 parent 5a955df commit 77ed4b1

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

man/datatable-optimize.Rd

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ it does so in "C-locale". This has some subtle implications; see Examples.
3131
out what level of optimisation is required. The default value \code{Inf}
3232
activates \emph{all} available optimisations.
3333
34-
At optimisation level \code{>= 1}, i.e., \code{getOption("datatable.optimize")}
35-
>= 1, these are the optimisations:
34+
For \code{getOption("datatable.optimize") >= 1}, these are the optimisations:
3635
3736
\itemize{
3837
\item The base function \code{order} is internally replaced with
@@ -52,7 +51,7 @@ At optimisation level \code{>= 1}, i.e., \code{getOption("datatable.optimize")}
5251
is an S3 generic and gets slow with many groups.
5352
}
5453
55-
At optimisation level \code{>= 2}, i.e., \code{getOption("datatable.optimize")} >= 2, additional optimisations are implemented on top of the optimisations already shown above.
54+
For \code{getOption("datatable.optimize") >= 2}, additional optimisations are implemented on top of the optimisations already shown above.
5655
5756
\itemize{
5857
@@ -81,7 +80,7 @@ At optimisation level \code{>= 2}, i.e., \code{getOption("datatable.optimize")}
8180
discussed above.
8281
}
8382
84-
At optimisation level \code{>= 3}, i.e., \code{getOption("datatable.optimize")} >= 3, additional optimisations for subsets in i are implemented on top of the optimisations already shown above. Subsetting operations are - if possible - translated into joins to make use of blazing fast binary search using indices and keys. The following queries are optimized:
83+
For \code{getOption("datatable.optimize") >= 3}, additional optimisations for subsets in i are implemented on top of the optimisations already shown above. Subsetting operations are - if possible - translated into joins to make use of blazing fast binary search using indices and keys. The following queries are optimized:
8584
8685
\itemize{
8786

man/foverlaps.Rd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ foverlaps(x, y, by.x = key(x) \%||\% key(y),
2929
\item{by.x, by.y}{A vector of column names (or numbers) to compute the overlap
3030
joins. The last two columns in both \code{by.x} and \code{by.y} should each
3131
correspond to the \code{start} and \code{end} interval columns in \code{x} and
32-
\code{y} respectively. And the \code{start} column should always be <= \code{end}
33-
column. If \code{x} is keyed, \code{by.x} is equal to \code{key(x)}, else
32+
\code{y} respectively. We should always have \code{start <= end}.
33+
If \code{x} is keyed, \code{by.x} is equal to \code{key(x)}, else
3434
\code{key(y)}. \code{by.y} defaults to \code{key(y)}. }
35-
\item{maxgap}{It should be a non-negative integer value, >= 0. Default is 0 (no
35+
\item{maxgap}{Non-negative integer, i.e., \code{maxgap >= 0}. Default is 0 (no
3636
gap). For intervals \code{[a,b]} and \code{[c,d]}, where \code{a<=b} and
3737
\code{c<=d}, when \code{c > b} or \code{d < a}, the two intervals don't overlap.
3838
If the gap between these two intervals is \code{<= maxgap}, these two intervals
3939
are considered as overlapping. Note: This is not yet implemented.}
40-
\item{minoverlap}{ It should be a positive integer value, > 0. Default is 1. For
40+
\item{minoverlap}{Positive integer, i.e., \code{minoverlap > 0}. Default is 1. For
4141
intervals \code{[a,b]} and \code{[c,d]}, where \code{a<=b} and \code{c<=d}, when
4242
\code{c<=b} and \code{d>=a}, the two intervals overlap. If the length of overlap
4343
between these two intervals is \code{>= minoverlap}, then these two intervals are

man/openmp-utils.Rd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
\item{threads}{ NULL (default) rereads environment variables. 0 means to use all logical CPUs available. Otherwise a number >= 1 }
1616
\item{restore_after_fork}{ Should data.table be multi-threaded after a fork has completed? NULL leaves the current setting unchanged which by default is TRUE. See details below. }
1717
\item{percent}{ If provided it should be a number between 2 and 100; the percentage of logical CPUs to use. By default on startup, 50\%. }
18-
\item{throttle}{ 1024 (default) means that, roughly speaking, a single thread will be used when nrow(DT)<=1024, 2 threads when nrow(DT)<=2048, etc. The throttle is to speed up small data tasks (especially when repeated many times) by not incurring the overhead of managing multiple threads. Hence the number of threads is throttled (restricted) for small tasks. }
18+
\item{throttle}{ 1024 (default) means that, roughly speaking, a single thread will be used when \code{nrow(DT)<=1024}, 2 threads when \code{nrow(DT)<=2048}, etc. The throttle is to speed up small data tasks (especially when repeated many times) by not incurring the overhead of managing multiple threads. Hence the number of threads is throttled (restricted) for small tasks. }
1919
\item{verbose}{ Display the value of relevant OpenMP settings plus the \code{restore_after_fork} internal option. }
2020
}
2121
\value{

0 commit comments

Comments
 (0)