No video

Build a geohash R package using Rust

  Рет қаралды 505

Josiah Parry

Josiah Parry

Күн бұрын

We cover more advanced Rust concepts to build a package to perform geohashing in R. You'll learn how to:
• Using match statements for control flow
• Creating and working with custom structs
• Deriving traits for added functionality on your structs
• Implementing the From trait for custom structs
• Destructure tuples
• Vectorization across two variables
• Handling NAs effectively
• Generating data.frames from a vector of structs
If you're ready to enhance your Rust skills and create a powerful R package, this video is for you. Subscribe for more advanced Rust tutorials! 🛠️💻
Code Github Repo: github.com/Jos...
Follow me on Twitter: / josiahparry
Connect with me on LinkedIn: / josiahparry

Пікірлер: 7
@brentonbills5946
@brentonbills5946 3 ай бұрын
Nice library 🎉.
@user-hl1fk6lw8k
@user-hl1fk6lw8k 4 ай бұрын
How does one document functions exported from rextendr::document() so the document is readable and can be a reference used in Rstudio? Seeing the arguments are referred to as C objects?
@josiahparry
@josiahparry 4 ай бұрын
I'm not sure I follow with the last part of "arguments are referred to as C objects" There's a couple ways to do this. Personally, I like to write wrappers around my Rust functions so I can do better argument validation with {rlang}. So I use roxygen comments like normal. But you can also use roxygen comments in rust too!! You just add `///` which is a doc comment in rust. For example above the function write /// This is my function title /// /// this is my function description /// @param x a list /// @export
@JordiRosell
@JordiRosell 4 ай бұрын
2:02, 16:19, etc What are you typing here to autocomplete typing? Is it some VS code Rust extension?
@josiahparry
@josiahparry 4 ай бұрын
Are you referring to the type hints? That’s the inlay hints from the rust analyzer!
@JordiRosell
@JordiRosell 4 ай бұрын
​@@josiahparry yeah. I'm just starting / willing to start in rust, so this is why I ask newie questions.
@josiahparry
@josiahparry 4 ай бұрын
@@JordiRosell would a video on setting up VS Code for Rust help? TL;DR install the following extensions - rust-analyzer - Better Toml - todo tree (personal opinion on this one)
Building UwU: Rust-based UUIDs for R
14:06
Josiah Parry
Рет қаралды 413
Making R 300x times faster!
21:28
Josiah Parry
Рет қаралды 4,5 М.
WORLD'S SHORTEST WOMAN
00:58
Stokes Twins
Рет қаралды 194 МЛН
Why Is He Unhappy…?
00:26
Alan Chikin Chow
Рет қаралды 110 МЛН
ROLLING DOWN
00:20
Natan por Aí
Рет қаралды 10 МЛН
Write surprisingly fast for loops in R
13:24
Josiah Parry
Рет қаралды 1,3 М.
How I use C++: a line-by-line code review
1:40:40
strager
Рет қаралды 255 М.
What is Apache Arrow?
12:50
CloudQuery
Рет қаралды 586
Geohash: the algorithm inside and out - Part 1
15:37
Josiah Parry
Рет қаралды 8 М.
R and Rust - getting started with extendr
22:03
Josiah Parry
Рет қаралды 1,7 М.
S3 Objects and Functions in R
16:28
Josiah Parry
Рет қаралды 3,4 М.
Is Rust the New King of Data Science?
15:38
Code to the Moon
Рет қаралды 135 М.
Rust’s Most Unique Feature
13:38
ArjanCodes
Рет қаралды 16 М.
Demystifying . . . (dots): R package dev fundamentals
10:08
Josiah Parry
Рет қаралды 2 М.
WORLD'S SHORTEST WOMAN
00:58
Stokes Twins
Рет қаралды 194 МЛН