No articles match
Evolving S7 classes and generics6 days ago
Changing a generic | Changing dispatch | Adding an argument | Removing an argument | Changing a default | Renaming a generic | Removing a generic | Moving a generic to another package | Changing a class | Adding a property | Removing a property | Renaming a property | Changing a property's type or validator | Renaming a class | Aliasing a class | Removing a class | Moving a class | Designing for evolution | Summary
Generics and methods6 days ago
Generic-method compatibility | Generic with dots; method without dots | Generic and method with dots | Generic and method without dots | Customizing generics | Add required arguments | Add optional arguments | Do some work | super() | Multiple dispatch | A simple example | Special "classes"
Classes and objects9 days ago
Validation | Basics | When is validation performed? | Avoiding validation | Properties | Default value | Computed properties | Dynamic properties | Common Patterns | Deprecated properties | Required properties | Frozen properties | Constructors
Developing odbc13 days ago
Posit Professional Drivers | Drivers | Databases | PostgreSQL | MySQL | SQL Server test setup | SQLite | Oracle | On MacOS | On Linux | Snowflake | Amazon Redshift | RODBC
Using S7 in a package20 days ago
Getting started | Classes | Generics and methods | Methods for suggested packages | Backward compatibility | S3 | Older versions of R
Get started with purrr26 days ago
Introduction | Map: A better way to loop | Progress bars | Parallel computing | Output variants | Input variants | Combinatorial explosion | Filtering and finding with predicates | Combining list elements into a single data structure
Tool/function calling1 months ago
Introduction | Motivating example | Defining a tool function | Registering and using tools | Tool inputs and outputs | Image and PDF tool output | Tool context | Sharing state across tools
Logging Beyond Local Files2 months ago
Writing to the System Log | Sending Logs over HTTP | Writing Directly to TCP Connections
Logging Performance2 months ago
Using cat() | The log4r Package | The futile.logger Package | The logging Package | The logger Package | The lgr Package | The rlog Package | Test All Loggers | Benchmarks | How long does it take to print messages? | How long does it take to decide to do nothing?
Documenting S43 months ago
Generics | Supported syntax | Classes | Methods
Auto-linking3 months ago
Within a package | Across packages
Customise your site3 months ago
Getting started | Theming | Light switch | Bootswatch themes | bslib variables | Fonts | Syntax highlighting | Math rendering | Navbar style | Layout | Navbar | Footer | Additional HTML and files | Template packages | Porting a template package | PR previews | Conclusion
Compatibility with S3 and S43 months ago
S3 | Methods | Generics | Classes | List classes | S4 | S7 classes that extend S4 classes | S4 classes that extend S7 classes | Unions
Get started with roxygen24 months ago
Basics | Running roxygen | Basic process: human readable documentation | Basic process: making functions available to users | Learn more
Getting started with ellmer4 months ago
Vocabulary | What is a token? | What is a conversation? | What is a prompt? | Example uses | Chatbots | Structured data extraction | Programming | Miscellaneous
Prompt design4 months ago
Best practices | Code generation | Basic flavour | Be explicit | Teach it about new features | Structured data | Getting started | Provide examples | Capturing raw input | Token usage
Managing imports and exports4 months ago
Exports | Manual exports | Imports | Functions | S3 | S4 | Compiled code
Documenting S34 months ago
Generics | Classes | Methods | Methods for generics in other packages
Developing a dbplyr backend4 months ago
First steps | Write your first method | Define a dialect | Copying, computing, collecting and collapsing | SQL translation: verbs | Building SQL strings | Behind the scenes | SQL translation: vectors | Scalar function helpers | Aggregation function helpers | Window function helpers | Custom translation functions
Performance4 months ago
S7 basics4 months ago
Classes and objects | Generics and methods | Named bindings | Method dispatch and inheritance
Structured data4 months ago
Structured data basics | Data types | Basics | Missing values | Data frames | Examples | Example 1: Article summarisation | Example 2: Named entity recognition | Example 3: Sentiment analysis | Example 4: Text classification | Example 5: Working with unknown keys | Example 6: Extracting data from an image | Tools and structured data | Token usage
(R)Markdown support6 months ago
Enabling markdown support | Basic syntax | Sections and subsections | Inline formatting | Code | Lists | Tables | Links | Images | Function links | Code chunks | Chunk options | Possible problems | Some Rd tags can't contain markdown | Mixing Markdown and Rd markup | Leading white space | Spurious lists
Documenting datasets6 months ago
Documenting functions6 months ago
Exporting | The introduction | Title | Description | Details | Required tags | Inputs | Outputs | Examples | Usage
Documenting packages6 months ago
Documenting R66 months ago
Classes | Fields and active bindings | Methods | Dynamic methods | Opting out
Documenting S76 months ago
Generics | Classes | Methods
Extending roxygen26 months ago
How roxygenize() works | Key data structures | Tags | Blocks | Adding a new .Rd tag | Using your new tag | Creating a new roclet | Custom tags | The roclet | Adding a roclet to your workflow | Conclusion: further extension ideas
Indexing and cross-references6 months ago
See also | Family | References | Aliases | Search | Back references
Reusing documentation6 months ago
Multiple functions in the same topic | @rdname | @describeIn | Order of includes | Automatically copy tags | Parameters | Recursive inheritance | Multiple parameters | The dot prefix | Inheriting other components | Documenting ... | Inheriting from other packages | Custom tags | Inline code | Inline Rd code | Child documents | Superseded
Non-standard evaluation6 months ago
Labelling | Exercises | Formulas | Definition of a formula | Evaluating a formula | Non-standard scoping | Unquoting | Programming with sieve() | Adding arguments | Dot-dot-dot | Metaprogramming
Column-wise operations8 months ago
Basic usage | Multiple functions | Current column | Gotchas | Other verbs | filter() and filter_out() | _if, _at, _all | Why do we like across()? | Why did it take so long to discover across()? | How do you convert existing code?
dplyr <-> base R8 months ago
Overview | One table verbs | arrange(): Arrange rows by variables | distinct(): Select distinct/unique rows | filter(): Return rows with matching conditions | mutate(): Create or transform variables | pull(): Pull out a single variable | relocate(): Change column order | rename(): Rename variables by name | rename_with(): Rename variables with a function | select(): Select variables by name | summarise(): Reduce multiple values down to a single value | slice(): Choose rows by position | Two-table verbs | Mutating joins | Filtering joins
Grouped data8 months ago
group_by() | Group metadata | Changing and adding to grouping variables | Removing grouping variables | Verbs | summarise() | select(), rename(), and relocate() | arrange() | mutate() | filter() | slice() and friends
Introduction to dplyr8 months ago
Data: starwars | Single table verbs | The pipe | Filter rows with filter() | Arrange rows with arrange() | Choose rows using their position with slice() | Select columns with select() | Add new columns with mutate() | Change column order with relocate() | Summarise values with summarise() | Commonalities | Combining functions with |> | Patterns of operations | Selecting operations | Mutating operations
Programming with dplyr8 months ago
Introduction | Data masking | Data- and env-variables | Indirection | Name injection | Tidy selection | The tidyselect DSL | How-tos | User-supplied data | One or more user-supplied expressions | Any number of user-supplied expressions | Creating multiple columns | Transforming user-supplied variables | Loop over multiple variables | Use a variable from an Shiny input
Row-wise operations8 months ago
Creating | Per row summary statistics | Row-wise summary functions | List-columns | Motivation | Subsetting | Modelling | Repeated function calls | Simulations | Multiple combinations | Varying functions | Previously | rowwise() | do()
Window functions8 months ago
Types of window functions | Ranking functions | Lead and lag | Cumulative aggregates | Recycled aggregates
Translation8 months ago
Introduction | The basics | Simple verbs | filter() and arrange() | select(), summarise(), transmute() | Other calls | rename() | distinct() | Joins | Set operations | Grouping | Combinations | Copies | Performance
Managing secrets8 months ago
Introduction | Locally | Ask each time | Environment variables | Keyring | Sharing with others | Reprexes | GitHub | Travis | CRAN | Documentation | Vignettes | Testing
Conversion semantics8 months ago
Value labels | labelled() | Missing values | Tagged missing values | User defined missing values
Recoding columns and replacing values9 months ago
Introduction | case_when() | replace_when() | Type stability | recode_values() | replace_values() | Comparisons | if_else() | coalesce() | na_if() | SQL
Function translation9 months ago
Getting started with translations | Basic differences | Known functions | Mathematics | Modulo arithmetic | Logical comparisons and boolean operations | Bitwise operations | Type coercion | NULL/NA handling | Aggregation | Conditional evaluation | String functions | Date/time functions | Other functions | Unknown functions | Prefix functions | Infix functions | Special forms | Error for unknown translations | Window functions
Verb translation10 months ago
Single table verbs | Subqueries | Dual table verbs
Reprexes for dbplyr10 months ago
Using memdb_frame() | Translating verbs | Translating individual expressions
Introduction to dbplyr10 months ago
Getting started | Connecting to the database | Generating queries | Why use dbplyr? | What happens when dbplyr fails? | Creating your own database | MySQL/MariaDB | PostgreSQL | BigQuery
In packages10 months ago
Introduction | Using tidyr in packages | Fixed column names | Continuous integration | tidyr v0.8.3 -> v1.0.0 | Conditional code | New syntax for nest() | New syntax for unnest() | nest() preserves groups | nest_() and unnest_() are defunct
Rectangling10 months ago
Introduction | GitHub users | GitHub repos | Game of Thrones characters | Geocoding with google | Sharla Gelfand's discography
Introduction to yaml11 months ago
What is YAML? | Parsing YAML | Scalars | Sequences | Maps | Custom handlers | Sequence handlers | Map handlers | Emitting YAML | Formatting options | indent | indent.mapping.sequence | column.major | YAML 1.2 logical handling | Verbatim text | Quoted strings | Custom tags
Custom expectations11 months ago
Do you need it? | Expectation basics | Testing your expectations | Examples | expect_vector_length() | expect_s3_class() | Optional class | Repeated code
Translations12 months ago
Testing challenging functions1 years ago
Options and environment variables | Random numbers | Some tests can't be run in some circumstances | HTTP requests | Graphics | User interaction | User-facing text | Repeated code
testthat 3e1 years ago
Activating | Changes | Deprecations | Warnings | Messages | waldo | Reproducible output | Upgrading | Alternatives
Introduction to forcats1 years ago
Ordering by frequency | NAs in levels and values | Combining levels | Ordering by another variable | Manually reordering
Functional programming in other languages1 years ago
purrr <-> base R1 years ago
Introduction | Key differences | Direct translations | Map functions | Extractor shorthands | Predicates | Other vector transforms | Examples | Varying inputs | One input | Two inputs | Any number of inputs | Outputs | Pipes
Locale sensitive functions1 years ago
Case conversion | Sorting and ordering
Regular expressions1 years ago
Basic matches | Escaping | Special characters | Matching multiple characters | Alternation | Grouping | Anchors | Repetition | Look arounds | Comments
httr21 years ago
Create a request | Perform a request and fetch the response | Control the request process
Two-table verbs1 years ago
Mutating joins | Controlling how the tables are matched | Types of join | Observations | Filtering joins | Set operations | Multiple-table verbs
Using dplyr in packages1 years ago
Join helpers | Data masking and tidy selection NOTEs | Deprecation | Multiple dplyr versions | Deprecation of mutate_*() and summarise_*() | Data frame subclasses
Nested data1 years ago
Basics | Nested data and models
Pivoting1 years ago
Introduction | Longer | String data in column names | Numeric data in column names | Many variables in column names | Multiple observations per row | Wider | Capture-recapture data | Aggregation | Generate column name from multiple variables | Tidy census | Implicit missing values | Unused columns | Contact list | Longer, then wider | World bank | Multi-choice | Manual specs | By hand | Theory
Programming with tidyr1 years ago
Introduction | Tidy selection | Indirection
Tidy data1 years ago
Data tidying | Defining tidy data | Data structure | Data semantics | Tidying messy datasets | Column headers are values, not variable names | Multiple variables stored in one column | Variables are stored in both rows and columns | Multiple types in one table | One type in multiple tables
Accessibility1 years ago
Theming | Images
How to update a released site1 years ago
Process | Setup | Backport changes | Publish | Context | Automatic development mode | Publishing | Construct a branch for the update | Problem-solving
Introduction to pkgdown1 years ago
Metadata | Accessibility | Home page | Reference | Articles | News | Publishing | Promoting
Metadata1 years ago
Necessary configuration | Site-wide customization | Article metadata
From base R1 years ago
Overall differences | Detect matches | str_detect(): Detect the presence or absence of a pattern in a string | str_which(): Find positions matching a pattern | str_count(): Count the number of matches in a string | str_locate(): Locate the position of patterns in a string | Subset strings | str_sub(): Extract and replace substrings from a character vector | str_sub() <- : Subset assignment | str_subset(): Keep strings matching a pattern, or find positions | str_extract(): Extract matching patterns from a string | str_match(): Extract matched groups from a string | Manage lengths | str_length(): The length of a string | str_pad(): Pad a string | str_trunc(): Truncate a character string | str_trim(): Trim whitespace from a string | str_wrap(): Wrap strings into nicely formatted paragraphs | Mutate strings | str_replace(): Replace matched patterns in a string | case: Convert case of a string | Join and split | str_flatten(): Flatten a string | str_dup(): duplicate strings within a character vector | str_split(): Split up a string into pieces | str_glue(): Interpolate strings | Order strings | str_order(): Order or sort a character vector
Mocking1 years ago
Getting started with mocking | Case studies | Pretending we're on a different platform | Speeding up tests | Managing time | How does mocking work?
Skipping tests1 years ago
Basics | Helpers | Embedding skip() in package functions
Snapshot tests1 years ago
Basic workflow | Snapshot format | Interactive usage | Testing errors | Other challenges | Varying outputs | local_reproducible_output() | Snapshotting graphics | Snapshotting values | Whole file snapshotting | Previous work
Test fixtures1 years ago
Test hygiene | local_ helpers | Foundations | on.exit() | withr::defer() | "Local" helpers | Case study: usethis | Scope | File | Package | Other challenges
Mocks: Integrating with testthat1 years ago
Mocks | Creating a mock function | Return values | Cycling through return values | Evaluating expression in an environment of choice | Integration with with_mocked_bindings() | Simple integration | Verifying the number of calls | Verify the call signature | Verify values of argument | Further reading
Star Wars films (dynamic HTML)1 years ago
Star Wars films (static HTML)1 years ago
Web scraping 1011 years ago
HTML basics | Elements | Contents | Attributes | Reading HTML with rvest | CSS selectors | Extracting data | Text | Tables | Element vs elements
Running tests in parallel1 years ago
Setup | Basic operation | Common problems | Performance | Reporters | Default reporters | Parallel support | Writing parallel reporters | Parallel updates
Programming with ellmer1 years ago
Cloning chats | Resetting an object | Streaming vs batch results | Turns and content
Streaming and async APIs1 years ago
Streaming results | Async usage | Asynchronous chat | Shiny example | Asynchronous streaming
quarto vignettes2 years ago
Operation | GitHub Actions | Limitations | Supported features | Inline formatting | Code | Figures | Equations | Cross references | To do
Welcome to the Tidyverse2 years ago
Summary | Tidyverse package | Components | Design principles | Acknowledgments | References
The tidy tools manifesto2 years ago
Reuse existing data structures | Compose simple functions with the pipe | Embrace functional programming | Design for humans
Structured Logging2 years ago
JSON Logs | logfmt Logs
Why pool?2 years ago
One connection per app | One connection per query | Pool: the best of both worlds
Getting started with profvis2 years ago
Introduction | Getting started | Navigating profvis | The data view | How profiling data is collected
Special files2 years ago
Test files | Helper files | Setup files | Teardown files | Snapshot files | Other files and folders
Introduction to stringr2 years ago
Getting and setting individual characters | Whitespace | Locale sensitive | Pattern matching | Tasks | Engines | Fixed matches | Collation search | Boundary
Installing and Configuring Drivers3 years ago
Installation | Windows | MacOS | Linux - Debian / Ubuntu | Driver configuration | Data source configuration | Debugging driver and data source configurations | Setting ODBCSYSINI
Benchmarks3 years ago
Setup | Writing | Reading
Motivation for S73 years ago
Challenges with S3 | Challenges with S4
Best practices for API packages3 years ago
Getting started with httr3 years ago
httr quickstart guide
Dates and times4 years ago
Formats | Offsets | References
An introduction to multidplyr6 years ago
Creating a cluster | Add data | partition() | Direct loading | dplyr verbs
proto: An R Package for Prototype Programming10 years ago
Introduction | The class "proto" and its methods | Examples | Summary | References | Frequently Asked Questions | Reference Card
Lazyeval: a new approach to NSE11 years ago
lazy() | Standard evaluation | Non-standard evaluation | Scoping | Chained promises
protoref: proto Reference Card11 years ago