Bjørn Sætrevik · @satrevik
416 followers · 63 posts · Server fediscience.org

This is how I usually set up the beginning of my / scripts to download data from 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 the results will always get the right datafile.

Let me know if there is a better way to do this!


#reproducibilitea #OpenScience #openscienceframework #reproducibility #r #reproduce #osf #Quarto #knitr

Last updated 1 year ago

Albert180 · @Albert180
129 followers · 291 posts · Server freiburg.social

Ach ist doch immer wieder für eine Überraschung gut.
Einen leeren Chunk gehabt, mir nix dabei gedacht. ausgeführt und mein System friert ein.
Ich liebe diese tolle Sprache und IDE einfach 😍

#rstudio #knitr

Last updated 1 year ago

Frederik Elwert · @felwert
876 followers · 2433 posts · Server mstdn.social

I have a question: Is there any main advantage over using plain if you don't use style code execution? Like for regular academic writing without dynamic computation?

#knitr #pandoc #Quarto

Last updated 1 year ago

· @multimeric
315 followers · 283 posts · Server genomic.social

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: github.com/multimeric/KnitrPor

#RStats #knitr #rmarkdown

Last updated 1 year ago

Jo Etzel · @JosetAEtzel
322 followers · 421 posts · Server fediscience.org

Major thanks to @tannguyen for spotting and reporting a bug in my niftiPlottingFunctions.R plot.volume() function!

The code at osf.io/k8u2c is updated; see mvpa.blogspot.com/2023/03/bugf for info and examples.

(This function is for plotting images in 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.

#knitr #nifti #fmri #rstats #baseR

Last updated 1 year ago

Achim Zeileis · @zeileis
609 followers · 209 posts · Server fosstodon.org

Can anyone help me setting figure options in :python: when calling it via in :rstats: using ?

I'm probably overlooking something obvious because I don't know enough about

Details:

stackoverflow.com/questions/75

#knitr #Reticulate #rstats #python

Last updated 1 year ago

Harald Kliems · @haraldkliems
245 followers · 705 posts · Server fosstodon.org

New blog post about candidate questionnaires for local elections. Half of it is about the logistics of getting responses from candidates, the other half is about using and to create nicely formatted output for the WordPress site. haraldkliems.netlify.app/posts

#rmarkdown #knitr #madisonbikes

Last updated 1 year ago

Jo Etzel · @JosetAEtzel
307 followers · 346 posts · Server fediscience.org

A methods paper of mine is now at doi.org/10.3389/fnimg.2023.107 . This little demonstrates human task quality control, as part of the FMRI Open QC Project (which I hope to discuss at and elsewhere as it wraps up).

Its supplemental (doi.org/10.17605/OSF.IO/HT543) may be of interest to folks, particularly if looking for examples of and/or scripts aiming to minimize dependencies and maximize long-term usability.

#graphics #knitr #baseR #rstats #OHBM #fmri #newneuropaper

Last updated 1 year ago

Jesse Onland · @jdonland
24 followers · 35 posts · Server vis.social

How can I get plots that expand when clicked on web pages generated from documents?

#rstudio #knitr #quarto #ggplot

Last updated 2 years ago

Jo Etzel · @JosetAEtzel
299 followers · 317 posts · Server fediscience.org

@ERDonnachie @tgtads @datamaps

I can't resist a vs. 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 supplemental files (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.)

#knitr #rstats #baseR #tidyverse

Last updated 2 years ago

Ewan Donnachie · @ERDonnachie
609 followers · 1175 posts · Server mstdn.social

Good news: knitr is getting a new progress bar.

With the new release coming in the next few weeks, knitr will no longer flood our consoles with irrelevant information. We'll also be able to use a custom progress bar.
yihui.org/en/2023/01/knitr-pro

@rstats

#rmarkdown #knitr #RStats

Last updated 2 years ago

Jo Etzel · @JosetAEtzel
272 followers · 206 posts · Server fediscience.org

@domliebl Nice graphing introduction!

I use base pretty much exclusively, and am probably more biased than you are against ggplot ... I used it for a few years when it first came out, but got frustrated by its limitations and the need for constant updating and dependencies.

If you are looking for base R graphics tutorials (plus ), try mvpa.blogspot.com/2020/03/intr

#knitr #rstats #baseR

Last updated 2 years ago

Henrik Sørlie · @hsorlie
49 followers · 55 posts · Server social.vivaldi.net

, and 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

#papaja #rstats #knitr

Last updated 2 years ago

posit::glimpse() · @posit_glimpse
984 followers · 71 posts · Server fosstodon.org

Some news about for : 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 yihui.org/en/2023/01/knitr-pro and give it a spin already with dev version!

#knitr #rstats #rmarkdown

Last updated 2 years ago

cderv · @cderv
182 followers · 20 posts · Server fosstodon.org

Some news about for : Next version will have a revisited progress bar!
Learn more at yihui.org/en/2023/01/knitr-pro and give it a spin already with dev version!

#knitr #rstats #rmarkdown #QuartoPub

Last updated 2 years ago

Dennis · @d2ns
498 followers · 452 posts · Server ruhr.social

Phew, it was a lot of tinkering, but my |s for my came out really nice. Made with the library and and rendered with , and via .

The 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.

#flowchart #thesis #rstats #DiagrammeR #graphviz #knitr #Bookdown #latex #rstudio #mermaid

Last updated 2 years ago

Joshua McNeill · @joshisanonymous
101 followers · 204 posts · Server h4.io

@stefanowitsch @linguistics for dealing with , for , with for transparency. I use a good amount too when I need to batch process files (e.g., convert a bunch of stereo audio files to mono). Sometimes I like using PowerShell over Python for text normalization over many files just because I've always found the file management syntax in Python clunky (e.g., removing diacritics). Also, let's not forget about scripting for stuff

#python #corpora #r #stats #latex #knitr #powershell #Praat #phonetics

Last updated 2 years ago

Cedric Batailler · @cedricbatailler
157 followers · 46 posts · Server fosstodon.org

Does anyone knows whether it is possible to pick the environment in which a R chunk will run?

I'm trying to compile every problem in one blogpost, and was thinking about sourcing a script per day. So far, I have not found a option to do this, but maybe my whole approach is wrong.

#QuartoPub #adventofcode #knitr

Last updated 2 years ago

Cedric Batailler · @cedricbatailler
222 followers · 61 posts · Server fosstodon.org

Does anyone knows whether it is possible to pick the environment in which a R chunk will run?

I'm trying to compile every problem in one blogpost, and was thinking about sourcing a script per day. So far, I have not found a option to do this, but maybe my whole approach is wrong.

#QuartoPub #adventofcode #knitr

Last updated 2 years ago

Jo Etzel · @JosetAEtzel
190 followers · 101 posts · Server fediscience.org

@SchnepfUwe Maybe adjust the resolution in the code chunk, or print via rasterImage()?

My plotting tutorial (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);
@

#gifti #rstats #knitr

Last updated 2 years ago