Comments (7)
Maybe relevant https://github.com/djnavarro/bs4cards/blob/master/R/validators.R
from blog.
FYI a new rlang release is in the works AFAIK.
from blog.
For reference: https://twitter.com/krlmlr/status/1449470169303195651?s=21
from blog.
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.
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.
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.
Speaking of rlang, this might be relevant as well: r-lib/rlang#1111
from blog.
Related Issues (20)
- Optimal workflows for package vignettes - R-hub blog HOT 10
- QC.R and check.R
- testthat utility belts HOT 9
- Everything centered on small screens, e.g. mobile HOT 1
- cran etiquette HOT 1
- Helper code and files for your testthat tests - R-hub blog HOT 9
- What is OAuth2.0 HOT 2
- backports and other approaches HOT 6
- the story of roxygen2? HOT 2
- onLoad(), package internal environment etc. HOT 2
- How to use r-hub docker containers in GitHub actions HOT 5
- Caching the results of functions of your R package - R-hub blog HOT 2
- Post about ellipsis HOT 3
- How to deal with OAuth2.0 in R packages? - R-hub blog HOT 3
- Checking the inputs of your R functions - R-hub blog HOT 1
- No line break between code and code output HOT 1
- Minimum R version dependency in R packages - R-hub blog HOT 4
- Objects that feel mutable in R - R-hub blog HOT 3
- A testing pattern: adding switches to your code - R-hub blog HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blog.