Open benthestatistician opened 1 week ago
@jwasserman2 @xinhew0708 I plan to start tackling this this afternoon. This is going to be a seismic change to the repo, so if anyone has any outstanding branches they'd like to get merged in today first, please speak up now so I can hold off.
*_design
is now *_spec
. (I haven't added any aliases yet.)Design
is now StudySpecification
design=
argument to all functions (including lmitt
) is now specification=
.des
or similar, renamed to spec
or similar. (e.g. desmod
-> specmod
). I did this as carefully as I could, but it's possible you'll see a few "provispec" in the comments/documentation.I did four substitutions
_design
to _spec
Design
to StudySpecification
design
to specification
des
to spec
d <- rct_spec...
is not spec <- rct_spec
.)The first three were done programmatically. It should cause no issues with code, but it could have caused issues with text (e.g. a sentenced reading "Design your study carefully." would now say "StudySpecification your study carefully."). E.g.
find R/ -type f -exec sed -i '' s/_design/_spec/g {} +
The fourth and below were done semi-manually; I gave each file a brief spot check to ensure des
only appeared where I wanted to make a change, e.g.
grep spec tests/testthat/test.SandwichLayer.R
taking note of any lines I saw where I didn't want to make the change, the running the appropriate find
command, followed by manually fixing the noted lines.
@benthestatistician I just noticed that we had previously rd_design
. Your list above specifies renaming rdd_design
to rdd_spec
. Do you want rdd_spec
or rd_spec
?
Let's stick with "rd_
", ie go to rd_spec
. (Sorry for the oversight.)
This felt large enough for a minor bump, just to be able to point to a clear change point in language.
Some of the language in the intro-to-propertee
vignette now reads somewhat awkwardly with the one-to-one replacement (brought to my attention by some questions from Cassandra). Flagging that if we continue to use that as the primary document for users, I think we'll want to revise some of the phrasing.
Also, it looks like the MI vignette isn't populating on the website after the recent push. Can you check that out, Josh?
@jwasserman2 see my 2nd to last comment in #70 - It's on my list to address when I get a chance.
Let's update our nomenclature as follows.
rct_design()
,rdd_design()
==>rct_spec()
,rdd_spec()
;as_rct_design()
,as_rdd_design()
==>as_rct_spec()
,as_rdd_spec()
.rct_spec -> rct_specification
,rdd_spec -> rdd_specification
.obs_design()
==>obs_spec()
.obs_specification -> obsstudy_specification -> obsstudy_spec -> obs_spec
.Design
" class as "StudySpecification
".design=
" argument oflmitt.formula()
asspecification=
.tests/testthat/
.Rationale: