You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Expand the fragmented sentence
Otherwise it's very hard to translate without pgettext() in a language
where "there is no <x>" is translated as "<x> is absent"
* Combine the fragmented sentence
This will avoid potential word order issues.
* Correct internal error message
.Last.value is a variable in the global environment. .Last.updated belongs to the data.table package.
* data.table-help -> data.table issue tracker
* Avoid templating on the known value of a variable
* When '9'+1 != ':', say it's ASCII-incompatible
* Don't check for length(.) < 0
* Use R capitalization for logical constants
* newline->error for codecov
* Use internal_error() instead of manual error handling
Co-authored-by: Michael Chirico <[email protected]>
* internal_error needs __func__
* Branch a previously templated translation
* Combine a fragmented sentence
* Recombine "gather took %.3fs\n"
Co-authored-by: rikivillalba <[email protected]>
* Split off the shrinkMSB helper
Hopefully the compiler will be smart enough to inline it back.
Co-authored-by: Michael Chirico <[email protected]>
* Branch a fragmented verbose sentence in fread
* Don't say we reduced MSBsize if it didn't change
Forgot to take #6504 (comment) into account.
* declaration style for pointer spacing
* line bump for codecov + readability
---------
Co-authored-by: Michael Chirico <[email protected]>
Co-authored-by: rikivillalba <[email protected]>
nJumps++; // the extra sample at the very end (up to eof) is sampled and format checked but not jumped to when reading
1898
1901
if (nrowLimit<INT64_MAX&&nrowLimit>0) nJumps=1; // when nrows>0 supplied by user, no jumps (not even at the end) and single threaded
@@ -1930,8 +1933,10 @@ int freadMain(freadMainArgs _args) {
1930
1933
}
1931
1934
if ( (thisNcol<ncol&&ncol>1&& !fill) ||
1932
1935
(!eol(&ch) &&ch!=eof) ) {
1933
-
if (verbose) DTPRINT(_(" A line with too-%s fields (%d/%d) was found on line %d of sample jump %d. %s\n"),
1934
-
thisNcol<ncol ? _("few") : _("many"), thisNcol, ncol, jumpLine, jump, jump>0 ? _("Most likely this jump landed awkwardly so type bumps here will be skipped.") : "");
1936
+
if (verbose)
1937
+
DTPRINT(thisNcol<ncol ? _(" A line with too-few fields (%d/%d) was found on line %d of sample jump %d. %s\n")
1938
+
: _(" A line with too-many fields (%d/%d) was found on line %d of sample jump %d. %s\n"),
1939
+
thisNcol, ncol, jumpLine, jump, jump>0 ? _("Most likely this jump landed awkwardly so type bumps here will be skipped.") : "");
1935
1940
bumped= false;
1936
1941
if (jump==0) lastRowEnd=eof; // to prevent the end from being tested; e.g. a short file with blank line within first 100 like test 976
1937
1942
break;
@@ -2035,7 +2040,10 @@ int freadMain(freadMainArgs _args) {
2035
2040
}
2036
2041
if (verbose) {
2037
2042
if (sampleLines==0) {
2038
-
DTPRINT(_(" 'header' determined to be %s because there are%s number fields in the first and only row\n"), args.header?"TRUE":"FALSE", args.header?_(" no"):"");
2043
+
if (args.header)
2044
+
DTPRINT(_(" 'header' determined to be TRUE because there are no number fields in the first and only row\n"));
2045
+
else
2046
+
DTPRINT(_(" 'header' determined to be FALSE because there are number fields in the first and only row\n"));
2039
2047
} else {
2040
2048
if (args.header)
2041
2049
DTPRINT(_(" 'header' determined to be true because all columns are type string and a better guess is not possible\n"));
@@ -2621,7 +2629,7 @@ int freadMain(freadMainArgs _args) {
2621
2629
2622
2630
if (stopTeam) {
2623
2631
if (internalErr[0]!='\0') {
2624
-
STOP("%s %s: %s. %s", _("Internal error in"), __func__, internalErr, _("Please report to the data.table issues tracker")); // # nocov
2632
+
STOP(_("Internal error in %s: %s. Please report to the data.table issues tracker"), __func__, internalErr);// # nocov
0 commit comments