diff --git a/404.html b/404.html index db1bbba..60f2e6d 100644 --- a/404.html +++ b/404.html @@ -60,7 +60,7 @@

Page not found (404)

diff --git a/LICENSE-text.html b/LICENSE-text.html index 717b97c..9fdca08 100644 --- a/LICENSE-text.html +++ b/LICENSE-text.html @@ -43,7 +43,7 @@

License

diff --git a/authors.html b/authors.html index 78607b9..d5a3a28 100644 --- a/authors.html +++ b/authors.html @@ -65,7 +65,7 @@

Citation

diff --git a/index.html b/index.html index acea669..c1a274d 100644 --- a/index.html +++ b/index.html @@ -139,7 +139,7 @@

Dev status

diff --git a/news/index.html b/news/index.html index 9090819..8113f6d 100644 --- a/news/index.html +++ b/news/index.html @@ -33,8 +33,9 @@

Changelog

dotty 0.2.0 (UNRELEASED)

-

dotty 0.1.0

CRAN release: 2024-08-30

@@ -49,7 +50,7 @@

dotty 0.1.0

diff --git a/pkgdown.js b/pkgdown.js index 9757bf9..1a99c65 100644 --- a/pkgdown.js +++ b/pkgdown.js @@ -152,3 +152,11 @@ async function searchFuse(query, callback) { }); }); })(window.jQuery || window.$) + +document.addEventListener('keydown', function(event) { + // Check if the pressed key is '/' + if (event.key === '/') { + event.preventDefault(); // Prevent any default action associated with the '/' key + document.getElementById('search-input').focus(); // Set focus to the search input + } +}); diff --git a/pkgdown.yml b/pkgdown.yml index fb57d2c..b5f5eee 100644 --- a/pkgdown.yml +++ b/pkgdown.yml @@ -1,8 +1,8 @@ pandoc: 3.1.11 -pkgdown: 2.1.0 +pkgdown: 2.1.1 pkgdown_sha: ~ articles: {} -last_built: 2024-09-04T22:09Z +last_built: 2024-09-25T04:39Z urls: reference: https://kevinushey.github.io/dotty/reference article: https://kevinushey.github.io/dotty/articles diff --git a/reference/destructure.html b/reference/destructure.html index 7ebbab4..579d2ec 100644 --- a/reference/destructure.html +++ b/reference/destructure.html @@ -77,7 +77,7 @@

Details diff --git a/reference/dotify.html b/reference/dotify.html index 8293117..d81a461 100644 --- a/reference/dotify.html +++ b/reference/dotify.html @@ -70,7 +70,7 @@

Details diff --git a/reference/dotty.html b/reference/dotty.html index 95a6748..7fe6c31 100644 --- a/reference/dotty.html +++ b/reference/dotty.html @@ -88,7 +88,7 @@

Examples -

Site built with pkgdown 2.1.0.

+

Site built with pkgdown 2.1.1.

diff --git a/reference/index.html b/reference/index.html index bf75d43..fa7828d 100644 --- a/reference/index.html +++ b/reference/index.html @@ -68,7 +68,7 @@

All functions -

Site built with pkgdown 2.1.0.

+

Site built with pkgdown 2.1.1.

diff --git a/search.json b/search.json index 0f0b0d2..f3bc587 100644 --- a/search.json +++ b/search.json @@ -1 +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.9000, 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.9000}, 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/destructure.html","id":null,"dir":"Reference","previous_headings":"","what":"Destructure an Object — destructure","title":"Destructure an Object — destructure","text":"`destructure` primarily used help define object prepared, transformed, prior destructuring assignment. can relevant objects unique subsetting semantics – example, [numeric_version] objects.","code":""},{"path":"https://kevinushey.github.io/dotty/reference/destructure.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Destructure an Object — destructure","text":"","code":"destructure(object)"},{"path":"https://kevinushey.github.io/dotty/reference/destructure.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Destructure an Object — destructure","text":"object R object.","code":""},{"path":"https://kevinushey.github.io/dotty/reference/destructure.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Destructure an Object — destructure","text":"Packages like define special destructring semantics certain object classes can implement methods class.","code":""},{"path":"https://kevinushey.github.io/dotty/reference/dotify.html","id":null,"dir":"Reference","previous_headings":"","what":"Dotify an R Package — dotify","title":"Dotify an R Package — dotify","text":"using `dotty` within R package, might see **NOTE**s `R CMD check` form:","code":""},{"path":"https://kevinushey.github.io/dotty/reference/dotify.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Dotify an R Package — dotify","text":"","code":"dotify()"},{"path":"https://kevinushey.github.io/dotty/reference/dotify.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Dotify an R Package — dotify","text":"“` N checking R code possible problems (1.8s) : visible binding global variable Undefined global functions variables: “` occurs [codetools] package, used static analysis R code `R CMD check`, recognize e.g. `.[apple] <- 42` create variable called `apple` current scope. Calling `dotty::dotify()` package's `.onLoad()` allow `dotty` patch `codetools` way allow understand `dotty` usages, prevent `R CMD check` notes emitted.","code":""},{"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` perform 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/news/index.html","id":"dotty-020-unreleased","dir":"Changelog","previous_headings":"","what":"dotty 0.2.0 (UNRELEASED)","title":"dotty 0.2.0 (UNRELEASED)","text":"dotty::dotify() now exported use R packages like use dotty internally. (#1)","code":""},{"path":"https://kevinushey.github.io/dotty/news/index.html","id":"dotty-010","dir":"Changelog","previous_headings":"","what":"dotty 0.1.0","title":"dotty 0.1.0","text":"CRAN release: 2024-08-30 Initial CRAN release.","code":""}] +[{"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.9000, 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.9000}, 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/destructure.html","id":null,"dir":"Reference","previous_headings":"","what":"Destructure an Object — destructure","title":"Destructure an Object — destructure","text":"`destructure` primarily used help define object prepared, transformed, prior destructuring assignment. can relevant objects unique subsetting semantics – example, [numeric_version] objects.","code":""},{"path":"https://kevinushey.github.io/dotty/reference/destructure.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Destructure an Object — destructure","text":"","code":"destructure(object)"},{"path":"https://kevinushey.github.io/dotty/reference/destructure.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Destructure an Object — destructure","text":"object R object.","code":""},{"path":"https://kevinushey.github.io/dotty/reference/destructure.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Destructure an Object — destructure","text":"Packages like define special destructring semantics certain object classes can implement methods class.","code":""},{"path":"https://kevinushey.github.io/dotty/reference/dotify.html","id":null,"dir":"Reference","previous_headings":"","what":"Dotify an R Package — dotify","title":"Dotify an R Package — dotify","text":"using `dotty` within R package, might see **NOTE**s `R CMD check` form:","code":""},{"path":"https://kevinushey.github.io/dotty/reference/dotify.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Dotify an R Package — dotify","text":"","code":"dotify()"},{"path":"https://kevinushey.github.io/dotty/reference/dotify.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Dotify an R Package — dotify","text":"“` N checking R code possible problems (1.8s) : visible binding global variable Undefined global functions variables: “` occurs [codetools] package, used static analysis R code `R CMD check`, recognize e.g. `.[apple] <- 42` create variable called `apple` current scope. Calling `dotty::dotify()` package's `.onLoad()` allow `dotty` patch `codetools` way allow understand `dotty` usages, prevent `R CMD check` notes emitted.","code":""},{"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` perform 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/news/index.html","id":"dotty-020-unreleased","dir":"Changelog","previous_headings":"","what":"dotty 0.2.0 (UNRELEASED)","title":"dotty 0.2.0 (UNRELEASED)","text":"Fixed issue invocations like .[, .., z] <- letters also create binding called ... (#4) dotty now requires arguments within .[] invocation either named unnamed – , .[= , b] <- c(= \"\", b = \"b\") now disallowed. may relaxed future release. (#3) dotty::dotify() now exported use R packages like use dotty internally. (#1)","code":""},{"path":"https://kevinushey.github.io/dotty/news/index.html","id":"dotty-010","dir":"Changelog","previous_headings":"","what":"dotty 0.1.0","title":"dotty 0.1.0","text":"CRAN release: 2024-08-30 Initial CRAN release.","code":""}]