Giter VIP home page Giter VIP logo

Comments (7)

maelle avatar maelle commented on July 16, 2024 1

Maybe relevant https://github.com/djnavarro/bs4cards/blob/master/R/validators.R

from blog.

gaborcsardi avatar gaborcsardi commented on July 16, 2024 1

FYI a new rlang release is in the works AFAIK.

from blog.

seabbs avatar seabbs commented on July 16, 2024 1

For reference: https://twitter.com/krlmlr/status/1449470169303195651?s=21

from blog.

Bisaloo avatar Bisaloo commented on July 16, 2024

Also a good place to talk about https://github.com/ropensci-review-tools/autotest as a way to control you check your inputs correctly?

from blog.

maelle avatar maelle commented on July 16, 2024

Oh yeah that's an excellent topic! Incidentally yesterday I was looking at the mlr dev docs and they mentioned checkmate.

Interested in contributing this post @Bisaloo et al?

from blog.

TimTaylor avatar TimTaylor commented on July 16, 2024

Looks like rlang::abort() is having quite an update in the next version. Not sure when this is likely to land but currently it no longer hides the call by default. This has knock on effects with assertions in vctrs as they no longer hide the call by default in an RStudio session

library(vctrs)
f <- function(x) vec_assert(x, integer())
f(1)
#> Error in `vec_assert()`: `x` must be a vector with type <integer>.
#> Instead, it has type <double>.

Anyone have an idea of where they are in their release timeline so the post does not go out of date too quick? 😅
Edit - previous error would have been

#> Error: `x` must be a vector with type <integer>.
#> Instead, it has type <double>.

from blog.

Bisaloo avatar Bisaloo commented on July 16, 2024

Speaking of rlang, this might be relevant as well: r-lib/rlang#1111

from blog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.