zeallot
Variable assignment with zeal! (or multiple, unpacking, and destructuring assignment in R) (by r-lib)
unpack
Vector unpack assignment syntax for R (by klmr)
zeallot | unpack | |
---|---|---|
3 | 2 | |
249 | 5 | |
0.4% | - | |
0.0 | 0.0 | |
over 2 years ago | about 3 years ago | |
R | R | |
GNU General Public License v3.0 or later | GNU General Public License v3.0 or later |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
zeallot
Posts with mentions or reviews of zeallot.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-01-16.
-
Is there a built in way to assign multiple variables in one line of code?
However, you can do this easily with the zealot package
- Loooopss
-
How do I access the multiple return values in a function?
The zeallot package can do this. It allows you to assign multiple values from an output. You use a new assignment operator, %<-%
unpack
Posts with mentions or reviews of unpack.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-03-22.
-
{typed} is on CRAN!
The main issue with ‘unpack’ being accepted by CRAN (besides manipulating the calling scope) is that it fails R CMD CHECK because it gets confused by the assignment syntax in the \usage in the documentation. I think this is an error in R CMD check since the CRAN message makes incorrect claims about missing \alias entries (which are in fact there). But, to be fair, this usage was clearly not intended by R, so all bets are off. I might be able to use \special{}. Hmm …
-
How do I access the multiple return values in a function?
This requires the ‘unpack’ package.
What are some alternatives?
When comparing zeallot and unpack you can also consider the following projects:
dplyr - dplyr: A grammar of data manipulation
inops - Infix Operators for Detection, Subsetting and Replacement
rmarkdown - Dynamic Documents for R
r4ds - R for data science: a book