-
Notifications
You must be signed in to change notification settings - Fork 0
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
add automated container build to provide the library #1
Comments
okay I'm doing some testing in the survey repo to see if I can install expfactoryR THEN the functions in the experiment, something like: echo "Installing package efsmsr"
R -e "devtools::install_github('expfactory/expfactoryR')"
#R -e "devtools::install_local('efsmsr')"
cd /tmp/src/efsmsr
R -e 'devtools::check()'
R -e 'devtools::test()' I'm sure it will fail at least 43 times before it gets working, I'm ok with this :) |
And what does "efsmsr" mean? |
yep that worked! Wicked cool :) I think we should add the same install routine here, to test the expfactoryR package itself. Did you write tests for it? |
Yes, there are tests for expfactoryr. The namespace constraints in R are quite restrictive, so I've gone for the general pattern |
why not be more explicit and go for the whole string at least, e.g., |
Given the above, if we break the allowed but discouraged
|
The more I read the rulez, the more they seem to have been designed to obfuscate the relationship between a package name and what it does! My love-hate relationship with R continues to unfold... :) |
I am ok with mostly anything, but I think the package should have some logical underpinning. So "efsmsr" is not great, but any of the other ones above would be ok. |
Authors seem to ignore the no CamelCase advice, so maybe
|
What's wrong with the dot one, and then we would have the expfactory namespace for all experiments? |
From packages names I see on CRAN, nobody seems to break the "no dots" rule, but many break the "no caps" rule. Maybe I should ask about relative merits on Stack Overflow. |
In Python a "dot" would come down to a different library (meaning if the library is called "expfactory" and you do
etc. |
Yeah, that would be great ... if R had the concept of hierarchical namespaces which mapped nicely onto filesystems. AIUI it has neither. It just dumps all packages into (global or local) lib dirs. I imagine this is the origin of the "no dots" rule, i.e. don't make namespaces look hierarchical when/because they're not. Breaking the CamelCase rule makes sense to me so that package names are easier to read, at the expense of being harder to type. |
Why not break the rule with dots (or some other allowable character?) It looks nicer, more pythonic :) |
I wonder whether the rules are then specifically to prevent it looking like something it isn't i.e. something moRonic. I'll take a reading from SO. |
I've asked this question on SO. |
Hmm. It got put on hold because it was deemed the answers would be opinion. I don't think I can re-word it to remove the hold. There are groups of packages that use |
The As a general principle, using lowercase names makes them easier to type. I'd favor something like
|
I'm huge +1 to what @richierocks has to say! I like the examples provided (with . and no weird capitalization) and think we should do exactly that. |
OK. I'll initiate a mass renaming ASAP. :) |
@earcanal you can use the configuration at expfactory-experiments/state-mindfulness-survey#3 to get this setup. I can take care of connecting to CircleCI - could you please look at the error in the link about root install and help debug what we should try? What I'd like to do is:
The text was updated successfully, but these errors were encountered: