This action will delete this post on this instance and on all federated instances, and it cannot be undone. Are you certain you want to delete this post?
This action will delete this post on this instance and on all federated instances, and it cannot be undone. Are you certain you want to delete this post?
This action will block this actor and hide all of their past and future posts. Are you certain you want to block this actor?
This action will block this object. Are you certain you want to block this object?
#Rstats 10 hashtags
@lascapi it is! I use it daily for #Rstats. For sending Commands to the REPL, i wrote helix-term, which is quite simplistic but works for me (not only for R)
Finally came around to write a very short post about the #HelixEditor scripts I wrote earlier this year for sending code to a REPL: https://www.jayvii.de/posts/helix-term/ #helix #neovim #rstats
@jgayfer i use the pipe command to send code to a REPL (e.g. when writing #Rstats): https://src.jayvii.de/pub/helix-term/index.html
@landesfeind improved upon this idea to create hide.
So, yes you can create quite nice workflows around :pipe
Migrating all my tools was quite a hassle, eventhough most of my self-written ones require not much configuring (if at all) and need no databases, etc.
I switched my rss reader from #miniflux to #selfoss, let's see how that turns out. I am also thinking about trying #ttrss again.
I do need to limit server load on this tiny 1-core, 1 GB RAM VPS. But that is part of the fun! Now, in the coming weeks I plan to go over my tools again and improve their performance (especially server-load) substantially. I think there is still room for improvement!
For example, I would love for yt2html to be pure #PHP instead of the old #Rstats script. Also, I would like to write a really simple file-based notes and bookmarking tool in PHP and retire the linkding service I am running, as it is a bit overkill for my uses.
If I were to transform yt2html to pure #PHP (and fetching feeds dynamically on each load rather than creating HTML files) instead of taking the shortcut throuh my years-old #Rstats script, this could also run on a webhost.
The only things I'd need a proper #VPS for would then be ktistec (i.e. social.jayvii.de) and stagit (src.jayvii.de) as well as my rss reader miniflux. All of the rest are either static content or simple PHP scripts (typically even DB-less): yt2rss, yt2html, tw2html, serĉi, pastesrv, ...
On the other side: If I do need a VPS either way, I might as well throw everything onto it. With the exception of ktistec, those are super low traffic anyways (and even ktistec's traffic is quite low).
When I switched from #vim #neovim to the #helixEditor #helix, I wrote two little scripts to code and run #Rstats code directly from helix (ofc it should work with any REPL). Finally came around to upload the two (very short) scripts to my #git instance today: https://src.jayvii.de/pub/helix-term/
@adamhsparks well, it might have been a bit of cheating, but besides the lines of config:[keys.normal]
C-c = { C-c = ["goto_prev_paragraph", "collapse_selection", "goto_next_paragraph", ":pipe-to ~/.local/bin/send-to-tmux", "collapse_selection"], c = ["toggle_comments"] }
[keys.select]
C-c = { C-c = [":pipe-to ~/.local/bin/send-to-tmux"], c = ["toggle_comments"] }
There are actually two bash scripts involved as well:
~/.local/bin/send-to-tmux.sh#!/usr/bin/env bash
while IFS= read line; do
tmux send-keys -t "helix_term" "$line" "Enter"
done
~/.local/bin/helixterm.sh#!/usr/bin/env bash
# unset $TMUX variable to enforce spawn
export TMUX=""
# Grab command
if [[ -z "$1" ]]; then
CMD="$SHELL"
else
CMD="$1"
fi
# Create new tmux session
tmux -2 new-session -s "helix_term" -d "$CMD"
# Attach to tmux session
tmux -2 attach-session -t "helix_term"
I now can simply start my #rstats session with helixterm.sh R
in a split terminal next to my script opened in helix and send code to it (both in normal or select mode) with 2x Ctrl-C. Of course that also works on a remote R-session via ssh and whatnot.
#HelixEditor & #Tmux with only two lines of config makes a better code editor for #rstats than any other editor or #R IDE I tried before. Helix replaced neovim for me completely
I've been in the fediverse since 2017 already, however with the recent growth in users and the switch to my own instance, I figured it is time for an #introduction.
I am a #Statistician and #DataScientist from Germany. I am also passionate about Free and #OpenSource #Software and am deeply involved in hosting, developing and advocacy of privacy friendly FOSS tools.
Besides above two topics, I share posts & ramble myself about #politics in Germany and the EU, #feminism, #veganism, #selfhosting, #rstats, #linux and whatever is currently happening. Posts are typically in English, shares are often in German as well.
If you have further questions, you are free to ask any time. You can find further contact info (incl. PGP) on my website https://www.jayvii.de