I tried to trick the print statement for 100.000 where I wanted all 6 digits printed not 1e+05 .
So my idea was to just add 0.1 to 100.000 and then force no digits after the decimal point by setting digits=0.

In general digits=0 works:

> print(1000+0.1, digits=0)

[1] 1000

but in my case:

> print(100000 + 0.1, digits = 0)

[1]%#5.0-1e

Help says about digits in print.default:

a non-null value for digits specifies the minimum number of significant digits to be printed in values. The default, NULL, uses getOption("digits"). (For the interpretation for complex numbers see signif.) Non-integer values will be rounded down, and only values greater than or equal to 1 and no greater than 22 are accepted.

Checked the issue in base R (4.0.3, SUSELinux), so not an RStudio issue. But I could not figure where else I could ask about it.

Am I wrong? Is R wrong?

Edit: see below, talking about 100,000 not 100.000

Sorry my fault, the text was in English but with German numbers, the problem not comprehensible.

Should be:

I tried to trick the print statement for 100,000 where I wanted all 6 digits printed not 1e+05 .
So my idea was to just add 0.1 to 100,000 and then force no digits after the decimal point by setting digits=0.

And this result you get with digits=0 is no good, I still think.