Closed timelyportfolio closed 4 years ago
I agree with the idea to use a verb, seems more natural and coherent with hide
.
I've got a small doubt about show
, because there are cases when we want to include a cell without showing it (in this case the cell would be both in show
and hide
, which feels a little strange). Both include
and render
seem good to me... Maybe include
is more "natural" ?
good point on show
and I agree include
seems like a good choice. render
I think carries much closer association with show
. Will try to think of a couple of others (hopefully shorter) verbs. I guess add
might be an option. Both include
and add
are not in base R so should be safe there even though it doesn't really matter if we default to NULL
.
join, bind, link, connect
Thanks for your propositions ! I think I've got a small preference for include
. add
is shorter, but it seems to me that by conveying the idea of adding something it is not totally coherent with the fact that it is rather "selects" specific cells...
But maybe you find that include
is too long ?
I'm less convinced by join, bind, link and connect, each one seems to carry a slightly different meaning...
@juba include
works for me. Want me to make the changes in function, JS, documentation, and examples?
If you have the time and are ok to do it, yes !
I can do it in the vignettes if you want to share the "burden".
@juba I'm happy to change all as long as next day or so is an acceptable time for completion.
@juba I hope I changed all cell
to include
. I tested all examples, vignettes, and rmarkdown that I found in the repo, and all seemed to work. Since this is breaking I incremented to 0.2.0
and updated package date. Please check if you have time that I successfully rid everything of cell =
. Thanks.
@juba sorry I messed up with origin
and upstream
and ended up needing to push to master
. Hope this doesn't pose any problems.
Thanks a lot !
In #23 we started to discuss whether the
cell
argument should be something else. I thinkcell
is fine, but that is likely because I use Observablehq quite a bit, and the term is familiar to me. We could opt for a verb similar tohide
. I included a couple of options:I do not have a strong opinion. If we change, we will need to make sure we change the examples.