rmhogervorst / blog Goto Github PK
View Code? Open in Web Editor NEWposts about R
Home Page: https://blog.rmhogervorst.nl
posts about R
Home Page: https://blog.rmhogervorst.nl
f.i. gosset part 1, ford leaps & arthur screams
I should do a check on all pages for missing images
<a class="github-button" href="https://github.com/gadenbuie" data-show-count="true" aria-label="Follow @gadenbuie on GitHub">Follow me</a>
https://opml.org/blogroll.opml
List of other blogs
Nl: In interview op podcast hoorde ik over dat iedereen naar Randstad trekt. Kunnen we simuleren waar mensen ook kunnen wonen, werken als de trein anders zou gaan? Mogelijk met https://docs.ropensci.org/stplanr/articles/stplanr-od.html
Basicly transformations.
keep the logic in ops/assets
mark job tests as pytest.mark.integ
test resources seperately
create a fake one if you resource does a lot.
Add to footer HTML
See https://barrd.dev/article/add-a-verified-website-to-your-mastodon-account/
http://microformats.org/wiki/h-entry
Can add class to current formatting.
For instance right now it is:
<article role=main class=blog-post><p>Over the last week I have experimented with dbt (data built tool), a cmdline tool
But I can easily make that <article role=main class="blog-post h-entry">
I have to check if the p-name and p-author stuff can be added to the meta information I'm already publishing
validate here https://indiewebify.me/validate-h-entry
official example:
<article class="h-entry">
<h1 class="p-name">Microformats are amazing</h1>
<p>Published by <a class="p-author h-card" href="http://example.com">W. Developer</a>
on <time class="dt-published" datetime="2013-06-13 12:00:00">13<sup>th</sup> June 2013</time></p>
<p class="p-summary">In which I extoll the virtues of using microformats.</p>
<div class="e-content">
<p>Blah blah blah</p>
</div>
</article>
as seen in RMHogervorst/cleancode#63
This is.not correct at footer me a coffee at Doneeror 
fix #65
Adds explainer to website
Use https://www.youtube.com/watch?v=c0bsKc4tiuY as inspiration, simone explains why making useless stuff is so nice. It makes the expectations low and keeps the fun
https://giphy.com/search/simone-giertz
simone is my spirit animal and I didn't even know it
Things I 've made that are not entirely useful
an app for adding bananas to your picture https://github.com/RMHogervorst/bananafy
multiple coffee related things...
How many times me and a friend drank coffee related to weather and other stuff
https://github.com/RMHogervorst/koffie
coffee related functions https://github.com/RMHogervorst/coffeegeeks
https://github.com/RMHogervorst/coffeedata dataset as a package example (of the previously mentioned coffee moments)
I've created scale to measure how much R-nerdiness you have https://github.com/RMHogervorst/r_scale
i created a dataset of werewolves https://github.com/RMHogervorst/werewolf, a dataset
of unicorns and unicycles
a list of things that should be a package but aren't yet https://github.com/RMHogervorst/shouldbeapackage
sometimes I go a bit overboard and even create a whole new organisation with a single useless purpose:
R-related karaoke:
Raoke package https://github.com/raoke/
with accompanying shiny app https://rmhogervorst.shinyapps.io/powrballad/ to select a song
startrek
https://github.com/rtrek
with TNG phrases and stuff.
But I learned so much from all of this! I learned the basics from the Coursera courses, and gradually taught myself how to interact with APIs, how to work with the magic package, geographical manipulation, shiny apps etc.
Blog addin for rstudio:
rename file (also renames folder with images)
resize image with
[*] add watermark
Settings, what works, what doesn't.
Add actions on MR
- name: HugoChecker
uses: ChrisPrusik/HugoChecker@v6
- name: Check Spelling
uses: check-spelling/[email protected]
- name: Lychee Broken Link Checker
uses: lycheeverse/[email protected]
I think it because I customized so much locally
Hi Roel,
I saw your post on r-bloggers, Thanks for the great article!
I tried to reproduce the code and I installed lightgbm correctly I think because the sample code is working fine, but the code is failing at tune_grid step.
Thanks for your help.
lgbm_tuned <- tune::tune_grid(
object = lgbm_wf,
resamples = ames_cv_folds,
grid = lgbm_grid,
metrics = yardstick::metric_set(rmse, rsq, mae),
control = tune::control_grid(verbose = FALSE)
)
I get the WARNING:
Warning message:
All models failed in tune_grid(). See the `.notes` column.
In the .notes column I see
internal: Error in pkg_list[[1]]: subscript out of bounds
My SessionInfo()
R version 4.0.2 (2020-06-22)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18363)
Matrix products: default
Random number generation:
RNG: Mersenne-Twister
Normal: Inversion
Sample: Rounding
locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] parallel stats graphics grDevices utils datasets methods
[8] base
other attached packages:
[1] janitor_2.0.1 AmesHousing_0.0.4 doParallel_1.0.15
[4] iterators_1.0.12 foreach_1.5.0 treesnip_0.1.0
[7] yardstick_0.0.7 workflows_0.1.2 dials_0.0.8
[10] scales_1.1.1 tune_0.1.1 parsnip_0.1.2
[13] recipes_0.1.13 dplyr_1.0.0 rsample_0.0.7
[16] ggplot2_3.3.2 lightgbm_3.0.0-1 R6_2.4.1
loaded via a namespace (and not attached):
[1] httr_1.4.2 tidyr_1.1.0 jsonlite_1.7.0
[4] splines_4.0.2 prodlim_2019.11.13 assertthat_0.2.1
[7] GPfit_1.0-8 blob_1.2.1 remotes_2.2.0
[10] globals_0.12.5 ipred_0.9-9 pillar_1.4.6
[13] lattice_0.20-41 glue_1.4.1 pROC_1.16.2
[16] digest_0.6.25 snakecase_0.11.0 colorspace_1.4-1
[19] htmltools_0.5.0 Matrix_1.2-18 plyr_1.8.6
[22] timeDate_3043.102 pkgconfig_2.0.3 lhs_1.0.2
[25] DiceDesign_1.8-1 listenv_0.8.0 purrr_0.3.4
[28] processx_3.4.3 gower_0.2.2 lava_1.6.7
[31] tibble_3.0.3 generics_0.0.2 ellipsis_0.3.1
[34] DT_0.14 withr_2.2.0 furrr_0.1.0
[37] nnet_7.3-14 cli_2.0.2 survival_3.1-12
[40] magrittr_1.5 crayon_1.3.4 ps_1.3.3
[43] future_1.18.0 fansi_0.4.1 MASS_7.3-51.6
[46] forcats_0.5.0 class_7.3-17 tools_4.0.2
[49] data.table_1.12.8 lifecycle_0.2.0 stringr_1.4.0
[52] munsell_0.5.0 callr_3.4.3 compiler_4.0.2
[55] rlang_0.4.7 grid_4.0.2 rstudioapi_0.11
[58] htmlwidgets_1.5.1 igraph_1.2.5 gtable_0.3.0
[61] codetools_0.2-16 DBI_1.1.0 lubridate_1.7.9
[64] utf8_1.1.4 stringi_1.4.6 Rcpp_1.0.5
[67] vctrs_0.3.2 rpart_4.1-15 dbplyr_1.4.4
[70] tidyselect_1.1.0
https://betterimagesofai.org/images?artist=CatherineBreslin&title=Strawberriesandmilk
create an image of:
Maybe the elements underneath the blog are under each other because it is a list?
Universe Dev link wrong
Keybase is nuked
RSS feed misses slash
Stackoverflow is not interesting
Mail could have a plus
knitr::opts_chunk$set(echo = TRUE)
I created this file message_warning.R
#!/usr/bin/env Rscript
print("this is a print \n")
cat("this is a cat \n")
message("this is a message \n")
warning("this is a warning")
stop("this is a stop, or error!")
If you execute this file with Rscript
Rscript message_warning.R
You get this
[1] "this is a print \n"
this is a cat
this is a message
Warning message:
this is a warning
Error: this is a stop, or error!
Execution halted
However, if you pipe the output into a file you only get the stout
Rscript message_warning.R > stuff.txt
The shell returns
this is a message
Warning message:
this is a warning
Error: this is a stop, or error!
Execution halted
and stuff.txt contains
[1] "this is a print \n"
this is a cat
But we can also write the sterr to file.
Rscript messgae_warning.R 2> stuff.txt
Now the shell outputs
[1] "this is a print \n"
this is a cat
and the stuff.txt file contains
this is a message
Warning message:
this is a warning
Error: this is a stop, or error!
Execution halted
How do you get them both?
Rscript message_warning.R &> stuff.txt
Because this is a static site it doesn't really matter but maybe I should just remove jquery it is used by an interactive component I believe
All posts have rich html metadata that I created with hugo.
What works great is title, author etc.
title too long?
description is short (it's the subtitle)
them color?,
keywords not set
robots not set
article:published_time
article:modified_time datetime
article:tag should be tags(stringarray)
article:author:
schema.org has all the right information: date published, date modified, image, keywords, it even has wordcount
author is @type thing? not human?, name is correct.
https://www.clairecodes.com/blog/2019-05-03-meta-descriptions-in-hugo-templates/
see https://github.com/r-universe-org/help
social:
- icon: rocket
icon_pack: fa
link: https://rmhogervorst.r-universe.dev/
https://github.com/RMHogervorst/blog/blob/main/data/beautifulhugo/social.toml
So the current search does not work on my blog (it does work on notes.rmhogervorst.nl).
Pagefind is a simple rust binary that can index very fast, it should run automatically after build
example:
https://blog.jverkamp.com/2023/09/25/adding-local-search-to-hugo-with-pagefind/
actual docs:
https://pagefind.app/docs/
Have to figure out how to run this in netlify.
possibly add some extra metadata https://pagefind.app/docs/metadata/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.