Page MenuHomeSolus

R - 3.6.1
Closed, DuplicatePublic

Description

Hi,

There is a problem with the compilation of R (version 3.6.1) - the calculations are incorrect. I compared the results against the docker image of R (version 3.6.1) and it gives the correct answer. I suspect there's something wrong with the compilation in R.

Please run the following script in R (solus).

set.seed(42)
x=rnorm(1000,10,2)
y=x+rnorm(1000)
summary(lm(y~x))

This gives an intercept of -21.24 and beta_x of 2.05374. The is incorrect as intercept should be 0 and beta_x = 1.

Compare this with a run in R with the docker image docker run -it --rm r-base. This pulls the official r-base image (version 3.6.1 as well) from docker and run it. Running the same scripts as above gives intercept = -0.05 and beta_x=1.00491, which is basically correct.

There is something wrong with the compilation of R. Note that the issue also occurs in rstudio - using R without rstudio does not matter - same error is given.

Finally, the ??<command> for inline help in rstudio has been resolved. Just requires rstudio to be recompiled to the latest version (1.2.5091) vs the latest current version of 1.2.1335-13 in the solus repo.

Thanks.