#knitr — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #knitr, aggregated by home.social.
-
#AcademicChatter Hello, fellow academic chatters. I'm an experimental scientist. And I regularly have the problem of how to organize acquired data by different participants to a same experiment. I'd like to have some feedback of how other people do this. Not necessarily specific computer programmes (such as digital labbooks), but rather how-tos based on robust, basic things, such as text and csv files, folder structures etc. I'm often battling with the workflow which is including handwritten measurements, their digital counterparts, metadata for the measurements, codes for samples, all of these done by different people, but all will have to end in one final dataset, where I would like to be able to trace data back to the paper files, and their metadata. And all of this with not too much additional effort by everybody ;-) Have done this usually with some shared server space, but usually it ends up as something a bit difficult to get through. I'm now rather thinking about a system involving perhaps something based on #MarkDown or even #RMarkdown or #knitr etc. Any feedback much welcome 😁
#ReproducibleResearch -
Performing some quick statistical analyses in classic #RStats and neatly “knitting” them into a PDF using #RMarkdown, #knitr, and #MacTeX #texLaTeX.
Call me old-fashioned, but I really enjoy this workflow. :awesome:
-
Performing some quick statistical analyses in classic #RStats and neatly “knitting” them into a PDF using #RMarkdown, #knitr, and #MacTeX #texLaTeX.
Call me old-fashioned, but I really enjoy this workflow. :awesome:
-
Performing some quick statistical analyses in classic #RStats and neatly “knitting” them into a PDF using #RMarkdown, #knitr, and #MacTeX #texLaTeX.
Call me old-fashioned, but I really enjoy this workflow. :awesome:
-
Performing some quick statistical analyses in classic #RStats and neatly “knitting” them into a PDF using #RMarkdown, #knitr, and #MacTeX #texLaTeX.
Call me old-fashioned, but I really enjoy this workflow. :awesome:
-
Performing some quick statistical analyses in classic #RStats and neatly “knitting” them into a PDF using #RMarkdown, #knitr, and #MacTeX #texLaTeX.
Call me old-fashioned, but I really enjoy this workflow. :awesome:
-
I posted a new introduction to surface #gifti and volume #NIfTI #fMRI data at https://mvpa.blogspot.com/2025/01/intro-to-working-with-volume-and.html.
The material is mostly general, with all examples using #baseR #rstats code; it's accompanied by a major update to my gifti #knitr tutorial.
I hope these will be useful to folks getting started with #neuroimaging datasets, as well as anyone looking for example scripts for reading, plotting, and manipulating (human fMRI) brain data files.
-
I posted a new introduction to surface #gifti and volume #NIfTI #fMRI data at https://mvpa.blogspot.com/2025/01/intro-to-working-with-volume-and.html.
The material is mostly general, with all examples using #baseR #rstats code; it's accompanied by a major update to my gifti #knitr tutorial.
I hope these will be useful to folks getting started with #neuroimaging datasets, as well as anyone looking for example scripts for reading, plotting, and manipulating (human fMRI) brain data files.
-
I posted a new introduction to surface #gifti and volume #NIfTI #fMRI data at https://mvpa.blogspot.com/2025/01/intro-to-working-with-volume-and.html.
The material is mostly general, with all examples using #baseR #rstats code; it's accompanied by a major update to my gifti #knitr tutorial.
I hope these will be useful to folks getting started with #neuroimaging datasets, as well as anyone looking for example scripts for reading, plotting, and manipulating (human fMRI) brain data files.
-
I posted a new introduction to surface #gifti and volume #NIfTI #fMRI data at https://mvpa.blogspot.com/2025/01/intro-to-working-with-volume-and.html.
The material is mostly general, with all examples using #baseR #rstats code; it's accompanied by a major update to my gifti #knitr tutorial.
I hope these will be useful to folks getting started with #neuroimaging datasets, as well as anyone looking for example scripts for reading, plotting, and manipulating (human fMRI) brain data files.
-
I posted a new introduction to surface #gifti and volume #NIfTI #fMRI data at https://mvpa.blogspot.com/2025/01/intro-to-working-with-volume-and.html.
The material is mostly general, with all examples using #baseR #rstats code; it's accompanied by a major update to my gifti #knitr tutorial.
I hope these will be useful to folks getting started with #neuroimaging datasets, as well as anyone looking for example scripts for reading, plotting, and manipulating (human fMRI) brain data files.
-
-
CW: R bashing / rant
Holy cow is #Rmarkdown #RStats #knitr inferior to #Jupyter. 😠
- WHY does it need to rerun EVERYTHING for hours when making a HTML/PDF?
- WHY is the apparent solution (caching) so weird? No clear instructions, only blog posts with broken formatting everywhere.
- WHY don't you at least see where it hangs during the process? No indication which line is currently executed?
- WHY does making a PDF silently fail after hours?[/rant]
-
@lwpembleton it was gradual for me. Grad school used it for stats classes and my advisor suggested to rewrite a standalone population genetics program in R. He then suggested to make it into a package and sent me to one of Hadley Wickham’s trainings (pre-RStudio). I then found out about #knitr and stated making websites in R and was hooked.
-
Hello #R or #Postgresql specialists. I have a few hundred views in a database schema, that I need to transform in a pdf (with ajusted size of the table since the number of rows and columns is highly variable). #knitR seems to be the relevant tool but I do not really know how to use it efficiently, I'm taking any advice !
-
🙏 I'm trying to get rid of an ugly hack that I used because of my #rmarkdown / #knitr / #quarto tech debt. Can you help ? https://github.com/tadascience/link/issues/3
-
Absolutely devastating news. I would not have accomplished what I have accomplished in the last decade without Yihui's work on #knitr. If you've ever encountered a website, report, or book built with #RStats in recent memory, you have Yihui to thank.
https://yihui.org/en/2024/01/bye-rstudio/
Until he gets a new position, he's looking for sponsorship: https://github.com/sponsors/yihui
-
Using #RMarkdown and #knitr after a long break. When did everything become so buggy? Several commands from the official R Markdown cheat sheet and R Markdown reference produce errors. 😒
-
Phew, had a really productive but exhausting #Rstats day today. It's a report that works with #quarto and #knitr and I created something like a "create_graph()" function, because the graphs a very similar and it saves a lot of copy paste.
I really want to make one thing clear: Without #Rstudio and #ggplot and #dplyr and all things #R I could not do my job. Neither Excel, nor Stata, nor SPSS could help in that specific way. I wouldn't get anything of the non-data tasks done...
-
This is how I usually set up the beginning of my #knitr / #quarto scripts to download data from #osf that I then use for analysis in the rest of the script.
This way I only need to share the script, and anybody who wants to #reproduce the results will always get the right datafile.
Let me know if there is a better way to do this!
#R #reproducibility
#ReproducibiliTea #OpenScienceFramework #OpenScience -
This is how I usually set up the beginning of my #knitr / #quarto scripts to download data from #osf that I then use for analysis in the rest of the script.
This way I only need to share the script, and anybody who wants to #reproduce the results will always get the right datafile.
Let me know if there is a better way to do this!
#R #reproducibility
#ReproducibiliTea #OpenScienceFramework #OpenScience -
This is how I usually set up the beginning of my #knitr / #quarto scripts to download data from #osf that I then use for analysis in the rest of the script.
This way I only need to share the script, and anybody who wants to #reproduce the results will always get the right datafile.
Let me know if there is a better way to do this!
#R #reproducibility
#ReproducibiliTea #OpenScienceFramework #OpenScience -
This is how I usually set up the beginning of my #knitr / #quarto scripts to download data from #osf that I then use for analysis in the rest of the script.
This way I only need to share the script, and anybody who wants to #reproduce the results will always get the right datafile.
Let me know if there is a better way to do this!
#R #reproducibility
#ReproducibiliTea #OpenScienceFramework #OpenScience -
This is how I usually set up the beginning of my #knitr / #quarto scripts to download data from #osf that I then use for analysis in the rest of the script.
This way I only need to share the script, and anybody who wants to #reproduce the results will always get the right datafile.
Let me know if there is a better way to do this!
#R #reproducibility
#ReproducibiliTea #OpenScienceFramework #OpenScience -
I think I've had a breakthrough on the "portable vignette" problem. The core of it is that knitr has an output.dir option which knitr makes everything relative to (e.g. image paths). The confusing part is that neither rmarkdown::render(output_dir=) nor rmarkdown::render(knit_root_dir=) actually sets this option (?!)
However, if you can find a way to set it, either using parameters or other options, it seems to work?
Full example here: https://github.com/multimeric/KnitrPortable
-
Major thanks to @tannguyen for spotting and reporting a bug in my niftiPlottingFunctions.R plot.volume() function!
The code at https://osf.io/k8u2c is updated; see https://mvpa.blogspot.com/2023/03/bugfix-for-niftiplottingfunctionsr.html for info and examples.
(This #baseR #rstats function is for plotting #fMRI #nifti images in #knitr documents.)
... it is painful to find out there was a bug, but so much better to fix it than to continue its propagation! I am grateful to @tannguyen and hope anyone else seeing something odd lets me know.
-
Major thanks to @tannguyen for spotting and reporting a bug in my niftiPlottingFunctions.R plot.volume() function!
The code at https://osf.io/k8u2c is updated; see https://mvpa.blogspot.com/2023/03/bugfix-for-niftiplottingfunctionsr.html for info and examples.
(This #baseR #rstats function is for plotting #fMRI #nifti images in #knitr documents.)
... it is painful to find out there was a bug, but so much better to fix it than to continue its propagation! I am grateful to @tannguyen and hope anyone else seeing something odd lets me know.
-
Major thanks to @tannguyen for spotting and reporting a bug in my niftiPlottingFunctions.R plot.volume() function!
The code at https://osf.io/k8u2c is updated; see https://mvpa.blogspot.com/2023/03/bugfix-for-niftiplottingfunctionsr.html for info and examples.
(This #baseR #rstats function is for plotting #fMRI #nifti images in #knitr documents.)
... it is painful to find out there was a bug, but so much better to fix it than to continue its propagation! I am grateful to @tannguyen and hope anyone else seeing something odd lets me know.
-
Major thanks to @tannguyen for spotting and reporting a bug in my niftiPlottingFunctions.R plot.volume() function!
The code at https://osf.io/k8u2c is updated; see https://mvpa.blogspot.com/2023/03/bugfix-for-niftiplottingfunctionsr.html for info and examples.
(This #baseR #rstats function is for plotting #fMRI #nifti images in #knitr documents.)
... it is painful to find out there was a bug, but so much better to fix it than to continue its propagation! I am grateful to @tannguyen and hope anyone else seeing something odd lets me know.
-
Can anyone help me setting figure options in :python: when calling it via #knitr in :rstats: using #reticulate? #rstats
I'm probably overlooking something obvious because I don't know enough about #python
Details:
https://stackoverflow.com/questions/75590659/set-figure-options-for-python-with-knitr
-
Can anyone help me setting figure options in :python: when calling it via #knitr in :rstats: using #reticulate? #rstats
I'm probably overlooking something obvious because I don't know enough about #python
Details:
https://stackoverflow.com/questions/75590659/set-figure-options-for-python-with-knitr
-
Can anyone help me setting figure options in :python: when calling it via #knitr in :rstats: using #reticulate? #rstats
I'm probably overlooking something obvious because I don't know enough about #python
Details:
https://stackoverflow.com/questions/75590659/set-figure-options-for-python-with-knitr
-
Can anyone help me setting figure options in :python: when calling it via #knitr in :rstats: using #reticulate? #rstats
I'm probably overlooking something obvious because I don't know enough about #python
Details:
https://stackoverflow.com/questions/75590659/set-figure-options-for-python-with-knitr
-
Can anyone help me setting figure options in :python: when calling it via #knitr in :rstats: using #reticulate? #rstats
I'm probably overlooking something obvious because I don't know enough about #python
Details:
https://stackoverflow.com/questions/75590659/set-figure-options-for-python-with-knitr
-
A methods paper of mine is now at https://doi.org/10.3389/fnimg.2023.1070274 . This little #NewNeuroPaper demonstrates human task #fMRI quality control, as part of the FMRI Open QC Project (which I hope to discuss at #OHBM and elsewhere as it wraps up).
Its supplemental (https://doi.org/10.17605/OSF.IO/HT543) may be of interest to #rstats folks, particularly if looking for examples of #baseR #knitr #graphics and/or scripts aiming to minimize dependencies and maximize long-term usability.
-
@ERDonnachie @tgtads @datamaps
I can't resist a #tidyverse vs. #baseR #rstats thread. 😅
It is totally possible to work without tidyverse, and base R graphics can be incredibly flexible. If you'd like some examples, just this morning I uploaded yet another set of all-base #knitr supplemental files (https://osf.io/ht543), with very pretty (and highly useful) graphics, if I say so myself. (Tidyverse can be ok, but it's not at all required.)
-
#papaja, #rstats and #knitr people: Can you change line spacing and font when knitting to PDF? Been collaborating on a paper, and we've knitted to PDF by default. Ended up just below 40 pages - perfect! But a submission deadline is nearing, and we needed a word version. Turns out it is at 45 pages! Done side-by side comp. Seems the PDF is not Times New Roman. Also, line spacing is different. We get around 27 lines on a PDF page, but 24 in the Word version. Ideas? @FrederikAust
-
Some news about #knitr for #rstats #rmarkdown : Next version will have a revisited, clean progress bar!
Going to a single-line progress bar when knitting a document, which will only show the progress and the chunk label by default.
Learn more at https://yihui.org/en/2023/01/knitr-progress-bar/ and give it a spin already with dev version!
-
Some news about #knitr for #rstats #rmarkdown #quartoPub : Next version will have a revisited progress bar!
Learn more at https://yihui.org/en/2023/01/knitr-progress-bar/ and give it a spin already with dev version! -
Phew, it was a lot of tinkering, but my #flowchart|s for my #thesis came out really nice. Made with the #rstats library #DiagrammeR and #graphviz and rendered with #knitr, #bookdown and #latex via #rstudio .
The #mermaid integration is just broken for latex-based pdfs, which is sad because mermaid is just really nice with its easy syntax. graphviz has at least more power and is embeddable as a vector pdf file.
-
@SchnepfUwe Maybe adjust the resolution in the #knitr code chunk, or print via rasterImage()?
My #rstats #gifti plotting tutorial (https://osf.io/jftuz) has examples of changing resolution (see chunk "code4").
Here's a snippet of the other strategy:
<<code1, fig.height=4.8, fig.width=7.5, fig.align='center'>>=plot(0:1, 0:1, type="n", ann=FALSE, axes=FALSE);
rasterImage(readPNG(fname, native=TRUE), 0,0,1,1);
@ -
I'm a staff scientist at Washington U in St Louis (#WashU #wustl #Missouri, USA), mostly working with human task fMRI datasets. I'm a big fan of #baseR and #knitr #rstats, #QC, and very extensive #supplementary materials. I insist on looking at data early and often; some #tutorials and examples on my blog. (#GotBrains?)
I'm a #FirstGen college grad, #IowaStateU; BS in #forestry. I also occasionally share cats, #knitting, and #crochet. Promoting abortion rights, not book bans.
-
I'm a staff scientist at Washington U in St Louis (#WashU #wustl #Missouri, USA), mostly working with human task fMRI datasets. I'm a big fan of #baseR and #knitr #rstats, #QC, and very extensive #supplementary materials. I insist on looking at data early and often; some #tutorials and examples on my blog. (#GotBrains?)
I'm a #FirstGen college grad, #IowaStateU; BS in #forestry. I also occasionally share cats, #knitting, and #crochet. Promoting abortion rights, not book bans.
-
I'm a staff scientist at Washington U in St Louis (#WashU #wustl #Missouri, USA), mostly working with human task fMRI datasets. I'm a big fan of #baseR and #knitr #rstats, #QC, and very extensive #supplementary materials. I insist on looking at data early and often; some #tutorials and examples on my blog. (#GotBrains?)
I'm a #FirstGen college grad, #IowaStateU; BS in #forestry. I also occasionally share cats, #knitting, and #crochet. Promoting abortion rights, not book bans.
-
I'm a staff scientist at Washington U in St Louis (#WashU #wustl #Missouri, USA), mostly working with human task fMRI datasets. I'm a big fan of #baseR and #knitr #rstats, #QC, and very extensive #supplementary materials. I insist on looking at data early and often; some #tutorials and examples on my blog. (#GotBrains?)
I'm a #FirstGen college grad, #IowaStateU; BS in #forestry. I also occasionally share cats, #knitting, and #crochet. Promoting abortion rights, not book bans.