Skip to content
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

load_all and R/unix and R/windows directories #1102

Closed
gaborcsardi opened this issue Feb 28, 2016 · 2 comments
Closed

load_all and R/unix and R/windows directories #1102

gaborcsardi opened this issue Feb 28, 2016 · 2 comments

Comments

@gaborcsardi
Copy link
Contributor

@gaborcsardi gaborcsardi commented Feb 28, 2016

Seems like load_all(), more precisely load_code() does not load .R files in the R/unix and R/windows subdirectories. As "Writing R Extensions" says in Section Package Subdirectories:

The R and man subdirectories may contain OS-specific subdirectories named unix or windows.

@gaborcsardi
Copy link
Contributor Author

@gaborcsardi gaborcsardi commented Feb 28, 2016

Looks like base R reads the source files like this:
https://github.com/wch/r-source/blob/b156e3a711967f58131e23c1b1dc1ea90e2f0c43/src/library/tools/R/admin.R#L235

I.e.:

tools::list_files_with_type("R", "code", full.names=FALSE)

This puts the unix/ subdir at the end, somewhat surprisingly, because then the usual zzz.R file is not the last any more....

@lock
Copy link

@lock lock bot commented Sep 18, 2018

This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/

@lock lock bot locked and limited conversation to collaborators Sep 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant