No articles match
Getting started with ellmer11 hours ago
Vocabulary | What is a token? | What is a conversation? | What is a prompt? | Example uses | Chatbots | Structured data extraction | Programming | Miscellaneous
Prompt design11 hours 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 exports1 days ago
Exports | Manual exports | Imports | Functions | S3 | S4 | Compiled code
Documenting S32 days ago
Generics | Classes | Methods | Methods for generics in other packages
Using S7 in a package3 days ago
Getting started | Classes | Generics and methods | Methods for suggested packages | Backward compatibility | S3 | Older versions of R
Developing a dbplyr backend10 days 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
Classes and objects15 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
Compatibility with S3 and S415 days ago
S3 | Methods | Generics | Classes | List classes | S4 | Unions
Generics and methods15 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"
Performance15 days ago
S7 basics15 days ago
Classes and objects | Generics and methods | Named bindings | Method dispatch and inheritance
Structured data18 days 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
Developing odbc2 months ago
Posit Professional Drivers | Drivers | Databases | PostgreSQL | MySQL | SQL Server test setup | SQLite | Oracle | On MacOS | On Linux | Snowflake | Amazon Redshift | RODBC
(R)Markdown support2 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 datasets2 months ago
Documenting functions2 months ago
Exporting | The introduction | Title | Description | Details | Required tags | Inputs | Outputs | Examples | Usage
Documenting packages2 months ago
Documenting R62 months ago
Classes | Fields and active bindings | Methods | Dynamic methods | Opting out
Documenting S42 months ago
Generics | Classes | Methods
Documenting S72 months ago
Generics | Classes | Methods
Extending roxygen22 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
Get started with roxygen22 months ago
Basics | Running roxygen | Basic process: human readable documentation | Basic process: making functions available to users | Learn more
Indexing and cross-references2 months ago
See also | Family | References | Aliases | Search | Back references
Reusing documentation2 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 evaluation3 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 operations5 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 R5 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 data5 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 dplyr5 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 dplyr5 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 operations5 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 functions5 months ago
Types of window functions | Ranking functions | Lead and lag | Cumulative aggregates | Recycled aggregates
Translation5 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 secrets5 months ago
Introduction | Locally | Ask each time | Environment variables | Keyring | Sharing with others | Reprexes | GitHub | Travis | CRAN | Documentation | Vignettes | Testing
Conversion semantics5 months ago
Value labels | labelled() | Missing values | Tagged missing values | User defined missing values
Recoding columns and replacing values5 months ago
Introduction | case_when() | replace_when() | Type stability | recode_values() | replace_values() | Comparisons | if_else() | coalesce() | na_if() | SQL
Function translation6 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 translation6 months ago
Single table verbs | Subqueries | Dual table verbs
Reprexes for dbplyr6 months ago
Using memdb_frame() | Translating verbs | Translating individual expressions
Introduction to dbplyr6 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 packages7 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
Rectangling7 months ago
Introduction | GitHub users | GitHub repos | Game of Thrones characters | Geocoding with google | Sharla Gelfand's discography
Introduction to yaml7 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 expectations7 months ago
Do you need it? | Expectation basics | Testing your expectations | Examples | expect_vector_length() | expect_s3_class() | Optional class | Repeated code
Tool/function calling8 months ago
Introduction | Motivating example | Defining a tool function | Registering and using tools | Tool inputs and outputs | Image and PDF tool output
Translations8 months ago
Get started with purrr9 months ago
Introduction | Map: A better way to loop | Progress bars | Parallel computing | Output variants | Input variants | Combinatorial explosion | Filtering and finding with predicates
Testing challenging functions9 months 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 3e9 months ago
Activating | Changes | Deprecations | Warnings | Messages | waldo | Reproducible output | Upgrading | Alternatives
Introduction to forcats9 months ago
Ordering by frequency | NAs in levels and values | Combining levels | Ordering by another variable | Manually reordering
Functional programming in other languages9 months ago
purrr <-> base R9 months 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 functions9 months ago
Case conversion | Sorting and ordering
Regular expressions9 months ago
Basic matches | Escaping | Special characters | Matching multiple characters | Alternation | Grouping | Anchors | Repetition | Look arounds | Comments
httr29 months ago
Create a request | Perform a request and fetch the response | Control the request process
Two-table verbs9 months ago
Mutating joins | Controlling how the tables are matched | Types of join | Observations | Filtering joins | Set operations | Multiple-table verbs
Using dplyr in packages9 months ago
Join helpers | Data masking and tidy selection NOTEs | Deprecation | Multiple dplyr versions | Deprecation of mutate_*() and summarise_*() | Data frame subclasses
Nested data10 months ago
Basics | Nested data and models
Pivoting10 months 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 tidyr10 months ago
Introduction | Tidy selection | Indirection
Tidy data10 months 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
Customise your site10 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
Accessibility10 months ago
Theming | Images
Auto-linking10 months ago
Within a package | Across packages
How to update a released site10 months ago
Process | Setup | Backport changes | Publish | Context | Automatic development mode | Publishing | Construct a branch for the update | Problem-solving
Introduction to pkgdown10 months ago
Metadata | Accessibility | Home page | Reference | Articles | News | Publishing | Promoting
Metadata10 months ago
Necessary configuration | Site-wide customization | Article metadata
From base R10 months 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
Mocking10 months ago
Getting started with mocking | Case studies | Pretending we're on a different platform | Speeding up tests | Managing time | How does mocking work?
Skipping tests10 months ago
Basics | Helpers | Embedding skip() in package functions
Snapshot tests10 months 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 fixtures10 months ago
Test hygiene | local_ helpers | Foundations | on.exit() | withr::defer() | "Local" helpers | Case study: usethis | Scope | File | Package | Other challenges
Mocks: Integrating with testthat10 months 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)10 months ago
Star Wars films (static HTML)10 months ago
Web scraping 10110 months ago
HTML basics | Elements | Contents | Attributes | Reading HTML with rvest | CSS selectors | Extracting data | Text | Tables | Element vs elements
Running tests in parallel11 months ago
Setup | Basic operation | Common problems | Performance | Reporters | Default reporters | Parallel support | Writing parallel reporters | Parallel updates
Programming with ellmer12 months 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 vignettes1 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
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 Drivers2 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 times3 years ago
Formats | Offsets | References
An introduction to multidplyr5 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 NSE10 years ago
lazy() | Standard evaluation | Non-standard evaluation | Scoping | Chained promises
protoref: proto Reference Card11 years ago