-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
posts/2023-12-07-view/ #25
Comments
What a journey! Something that broke my mind is that lowercase |
The reason that getOption("defaultPackages") |>
setdiff("datasets") |>
vapply(\(x) paste0("package:", x), character(1)) |>
ls() |>
strsplit("") |>
Filter(f = \(x) x[[1]] %in% LETTERS) |>
vapply(paste0, character(1), collapse = "") didn't return all capitalized function names is that ls(c('package:utils', 'package:grDevices')) and you will see the grDevices package is ignored. This is what I'd do:
In the current version of R, there are 500 such functions. But it may make more sense to see exported functions only, because they are user-faced. In that case, you can do: nm = lapply(getOption("defaultPackages"), getNamespaceExports)
sort(grep('^[A-Z]', unlist(nm), value = TRUE)) There are 85 such functions. Anyway, I don't know why |
Mike Mahoney - Why is View() capitalized, anyway?
And down the rabbit hole we go.
https://www.mm218.dev/posts/2023-12-07-view/
The text was updated successfully, but these errors were encountered: