Re: [Rd] WISH: set.seed(seed) to produce error if length(seed) != 1 (now silent)

2021-09-17 Thread Jake Elmstedt
What about splitting the baby and having set.seed(1:2), set.seed(6.1), etc. issue a warning rather than throw an error? It informs the user that their expectations have deviated from reality, encourages proper programming practices, and carries substantially lower risk of breaking things than an e

[Rd] Feature Request with Proposed Solution: Update utils:::format.object_size() and utils:::print.object_size() to Respect Optional Formatting Arguments

2021-06-02 Thread Jake Elmstedt
Problem: When running the following commands: x <- numeric(1e8) format(object.size(x), units = "kB", standard = "SI") #> [1] "8e+05 kB" The object size is returned in scientific notation. It is natural to assume we could use the argument 'scientific = FASLE' to solve this. format(object.size(x),

[Rd] Locking of base environment in R 4.1.0 breaks simple assignment of .First() (etc) from Rprofile.site

2021-05-24 Thread Jake Elmstedt
Commits 80162 and 80163 lock the base environment and namespace during startup, leading to an error when attempting to directly assign anything from within Rprofile.site. While this is intentional and good, the help file has not been updated to reflect this change. Startup.Rd ( Description, paragr