Comments (1)
Extremely useful post!
I wanted to use match.arg()
for my functions but I was disappointed to find out that the function uses partial matching unlike rlang::arg_match()
# match.arg will not trigger an error
match.arg(arg = "p", choices = c("R", "python"))
# rlang::arg_match0 will trigger an error
rlang::arg_match0(arg = "p", choices = c("R", "python"))
from blog.
Related Issues (20)
- 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
- Tools for input checking in functions HOT 7
- Post about ellipsis HOT 3
- How to deal with OAuth2.0 in R packages? - R-hub blog HOT 3
- 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
- Overview of the CRAN checks API - R-hub blog HOT 4
- Cliff notes about the cli package - R-hub blog HOT 6
- Key advantages of using the keyring package - R-hub blog HOT 2
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.