-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deploying to gh-pages from @ 65b9290 🚀
- Loading branch information
1 parent
4384240
commit e0da1b2
Showing
4 changed files
with
10 additions
and
10 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
[{"path":"https://kevinushey.github.io/dotty/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Kevin Ushey. Maintainer.","code":""},{"path":"https://kevinushey.github.io/dotty/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Ushey K (2024). dotty: Destructuring Dot Operator. R package version 0.1.0, https://kevinushey.github.io/dotty/.","code":"@Manual{, title = {dotty: The Destructuring Dot Operator}, author = {Kevin Ushey}, year = {2024}, note = {R package version 0.1.0}, url = {https://kevinushey.github.io/dotty/}, }"},{"path":"https://kevinushey.github.io/dotty/index.html","id":"dotty","dir":"","previous_headings":"","what":"The Destructuring Dot Operator","title":"The Destructuring Dot Operator","text":"Destructuring assignments R . object.","code":""},{"path":"https://kevinushey.github.io/dotty/index.html","id":"usage","dir":"","previous_headings":"","what":"Usage","title":"The Destructuring Dot Operator","text":"","code":"library(dotty) # extract number of rows, number of columns from mtcars .[nr, nc] <- dim(mtcars) c(nr, nc) ## [1] 32 11 # extract first, last element of vector .[first, .., last] <- c(1, 2, 3, 4, 5) c(first, last) ## [1] 1 5 # extract a value by name .[beta = beta] <- list(alpha = 1, beta = 2, gamma = 3) beta ## [1] 2 # unpack nested values .[x, .[y, .[z]]] <- list(1, list(2, list(3))) c(x, y, z) ## [1] 1 2 3 # split version components .[major, minor, patch] <- getRversion() c(major, minor, patch) ## [1] 4 4 1"},{"path":"https://kevinushey.github.io/dotty/index.html","id":"r-cmd-check","dir":"","previous_headings":"","what":"R CMD check","title":"The Destructuring Dot Operator","text":"’d like use dotty CRAN package, can avoid R CMD check warnings including file called R/zzz.R contents: function patches codetools variables usages . expressions can linted though regular bindings / assignments.","code":".onLoad <- function(libname, pkgname) { dotty::dotify() }"},{"path":"https://kevinushey.github.io/dotty/reference/dotty.html","id":null,"dir":"Reference","previous_headings":"","what":"The Destructuring Dot Operator — .","title":"The Destructuring Dot Operator — .","text":"Use `dotty` performed destructuring assignments. Please see examples usages.","code":""},{"path":"https://kevinushey.github.io/dotty/reference/dotty.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"The Destructuring Dot Operator — .","text":"","code":"."},{"path":"https://kevinushey.github.io/dotty/reference/dotty.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"The Destructuring Dot Operator — .","text":"object class dotty length 0.","code":""},{"path":"https://kevinushey.github.io/dotty/reference/dotty.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"The Destructuring Dot Operator — .","text":"","code":"# extract number of rows, number of columns from mtcars .[nr, nc] <- dim(mtcars) c(nr, nc) #> [1] 32 11 # extract first, last element of vector .[first, .., last] <- c(1, 2, 3, 4, 5) c(first, last) #> [1] 1 5 # extract a value by name .[beta = beta] <- list(alpha = 1, beta = 2, gamma = 3) beta #> [1] 2 # unpack nested values .[x, .[y, .[z]]] <- list(1, list(2, list(3))) c(x, y, z) #> [1] 1 2 3 # split version components .[major, minor, patch] <- getRversion() c(major, minor, patch) #> [1] 4 4 1"}] | ||
[{"path":"https://kevinushey.github.io/dotty/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Kevin Ushey. Author, maintainer.","code":""},{"path":"https://kevinushey.github.io/dotty/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Ushey K (2024). dotty: Unpacking Dot Operator. R package version 0.1.0, https://kevinushey.github.io/dotty/.","code":"@Manual{, title = {dotty: The Unpacking Dot Operator}, author = {Kevin Ushey}, year = {2024}, note = {R package version 0.1.0}, url = {https://kevinushey.github.io/dotty/}, }"},{"path":"https://kevinushey.github.io/dotty/index.html","id":"dotty","dir":"","previous_headings":"","what":"The Unpacking Dot Operator","title":"The Unpacking Dot Operator","text":"Destructuring assignments R . object.","code":""},{"path":"https://kevinushey.github.io/dotty/index.html","id":"usage","dir":"","previous_headings":"","what":"Usage","title":"The Unpacking Dot Operator","text":"","code":"library(dotty) # extract number of rows, number of columns from mtcars .[nr, nc] <- dim(mtcars) c(nr, nc) ## [1] 32 11 # extract first, last element of vector .[first, .., last] <- c(1, 2, 3, 4, 5) c(first, last) ## [1] 1 5 # extract a value by name .[beta = beta] <- list(alpha = 1, beta = 2, gamma = 3) beta ## [1] 2 # unpack nested values .[x, .[y, .[z]]] <- list(1, list(2, list(3))) c(x, y, z) ## [1] 1 2 3 # split version components .[major, minor, patch] <- getRversion() c(major, minor, patch) ## [1] 4 4 1"},{"path":"https://kevinushey.github.io/dotty/index.html","id":"r-cmd-check","dir":"","previous_headings":"","what":"R CMD check","title":"The Unpacking Dot Operator","text":"’d like use dotty CRAN package, can avoid R CMD check warnings including file called R/zzz.R contents: function patches codetools variables usages . expressions can linted though regular bindings / assignments.","code":".onLoad <- function(libname, pkgname) { dotty::dotify() }"},{"path":"https://kevinushey.github.io/dotty/reference/dotty.html","id":null,"dir":"Reference","previous_headings":"","what":"The Destructuring Dot Operator — .","title":"The Destructuring Dot Operator — .","text":"Use `dotty` performed destructuring assignments. Please see examples usages.","code":""},{"path":"https://kevinushey.github.io/dotty/reference/dotty.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"The Destructuring Dot Operator — .","text":"","code":"."},{"path":"https://kevinushey.github.io/dotty/reference/dotty.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"The Destructuring Dot Operator — .","text":"object class dotty length 0.","code":""},{"path":"https://kevinushey.github.io/dotty/reference/dotty.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"The Destructuring Dot Operator — .","text":"","code":"# extract number of rows, number of columns from mtcars .[nr, nc] <- dim(mtcars) c(nr, nc) #> [1] 32 11 # extract first, last element of vector .[first, .., last] <- c(1, 2, 3, 4, 5) c(first, last) #> [1] 1 5 # extract a value by name .[beta = beta] <- list(alpha = 1, beta = 2, gamma = 3) beta #> [1] 2 # unpack nested values .[x, .[y, .[z]]] <- list(1, list(2, list(3))) c(x, y, z) #> [1] 1 2 3 # split version components .[major, minor, patch] <- getRversion() c(major, minor, patch) #> [1] 4 4 1"}] |