Problems with R 4.0.0 - Windows - "Error: package or namespace load failed for ‘stats’ in inDL(x, as.logical(local), as.logical(now), ...):"

@ameresv and @Angela_Holland, I just installed R 4.0.0 on my Windows 10 system, and faced no issue.

Steps I followed:

  1. downloading the installers for R and rtools40
  2. installed R and accepted all defaults
  3. installed rtools40 and accepted all defaults
  4. opened Rtools Bash (from Rtools 4.0 folder in start menu)
  5. checked the home for Rtools via this: echo $RTOOLS40_HOME (for me, it was C:\rtools40)
  6. went to the setting of environment variables and added a new entry C:\rtools40\usr\bin for my user

I hope this should work for you two as well.

5 Likes