-
Notifications
You must be signed in to change notification settings - Fork 11
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
In hyperSpec.Rmd faux_cell is repeatedly overwritten #224
Comments
I saw similar issues in several vignettes. It seemed a bit vulnerable, as some modifications in code may create mismatches between the results of code and narration. In some places mismatches were already present. |
I think we may distinguish the flow of the data analysis ("narration") from "side notes" about solving thematically related issues that are however, not following the central line of the narration.
For vignette hyperSpec part of the secret for behaving is that
But you are right: this is likely confusing for readers. I'm thinking that we may want to further break the vignette into parts: keep vignette hyperSpec focused on a description of how hyperSpec objects behave and have separate vignettes for "spectroscopic tasks", e.g. correcting the wavelength axis (and we anyways already have the topic "baseline correction") |
I may not have been completely clear. We have code that looks like this in the vignette:
My point is that only # 1 is using |
@cbeleites By "narration" I meant "text that describes plots and other results produced by R code". For workflow demonstration vignettes, I agree, that this is acceptable. But for vignettes, that demonstrate separate pieces of functionality, this does not seem convenient. Because if code in one section changes, it affects everything bellow. @bryanhanson Does it seem that this behavior could result in some issues in
On code style: I'd prefer using dots only in the function names of S3 methods and using underscores instead of dots in all other object names in the examples/vignettes. (E.g., → |
I updated the title of this issue as |
In the course of working on #223 I noticed that
chondro
is repeatedly overwritten as the vignette progresses. Wouldn't it be better to assign the result to something likechondro.tmp <-
to avoid modifying the modifications repeatedly? I'm a little surprised it behaves well.The text was updated successfully, but these errors were encountered: