diff --git a/.Rbuildignore b/.Rbuildignore index b4c6842..eb780d9 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -2,3 +2,6 @@ ^README\.Rmd$ ^.*\.Rproj$ ^\.Rproj\.user$ +^_pkgdown\.yml$ +^docs$ +^pkgdown$ diff --git a/.gitignore b/.gitignore index c833a2c..364bd93 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ .RData .Ruserdata inst/doc + diff --git a/_pkgdown.yml b/_pkgdown.yml new file mode 100644 index 0000000..e69de29 diff --git a/docs/404.html b/docs/404.html new file mode 100644 index 0000000..d7d5263 --- /dev/null +++ b/docs/404.html @@ -0,0 +1,155 @@ + + + +
+ + + + +YEAR: 2021 +COPYRIGHT HOLDER: BUSINESS SCIENCE ++ +
Copyright (c) 2021 BUSINESS SCIENCE
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+getting-started.Rmd
+library(gamsnip)
The goal of gamsnip is to …
+Development version:
+
+# install.packages("devtools")
+devtools::install_github("business-science/gamsnip")
tidyeval.Rd
sym()
creates a symbol from a string and
+syms()
creates a list of symbols from a
+character vector.
enquo()
and
+enquos()
delay the execution of one or
+several function arguments. enquo()
returns a single quoted
+expression, which is like a blueprint for the delayed computation.
+enquos()
returns a list of such quoted expressions.
expr()
quotes a new expression locally. It
+is mostly useful to build new expressions around arguments
+captured with enquo()
or enquos()
:
+expr(mean(!!enquo(arg), na.rm = TRUE))
.
as_name()
transforms a quoted variable name
+into a string. Supplying something else than a quoted variable
+name is an error.
That's unlike as_label()
which also returns
+a single string but supports any kind of R object as input,
+including quoted function calls and vectors. Its purpose is to
+summarise that object into a single label. That label is often
+suitable as a default name.
If you don't know what a quoted expression contains (for instance
+expressions captured with enquo()
could be a variable
+name, a call to a function, or an unquoted constant), then use
+as_label()
. If you know you have quoted a simple variable
+name, or would like to enforce this, use as_name()
.
To learn more about tidy eval and how to use these tools, visit +https://tidyeval.tidyverse.org and the +Metaprogramming +section of Advanced R.
+