Skip to content

Replace %>% with native |> pipe in contracts.R#7

Open
Copilot wants to merge 2 commits intomainfrom
copilot/fix-pipe-operator-issue
Open

Replace %>% with native |> pipe in contracts.R#7
Copilot wants to merge 2 commits intomainfrom
copilot/fix-pipe-operator-issue

Conversation

Copy link
Copy Markdown

Copilot AI commented Feb 22, 2026

CodeFactor flagged use of the magrittr %>% pipe in R/contracts.R where the native R |> pipe is preferred.

Changes

  • R/contracts.R: Replaced %>% with |> in repo_to_raw()
  • R/contracts.R: Removed now-unnecessary @importFrom magrittr %>% roxygen tag
# Before
sub("https://github.com/", "https://raw.githubusercontent.com/", repo_url,
    fixed = TRUE) %>%
  paste0("/main/contract.md")

# After
sub("https://github.com/", "https://raw.githubusercontent.com/", repo_url,
    fixed = TRUE) |>
  paste0("/main/contract.md")
Original prompt

This section details on the original issue you should resolve

<issue_title>Fix 'Use the |> pipe operator instead of the %>% pipe operator.' issue in R\contracts.R</issue_title>
<issue_description>CodeFactor found an issue: Use the |> pipe operator instead of the %>% pipe operator.

It's currently on:
R\contracts.R:185
Commit e917698</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: smasongarrison <6001608+smasongarrison@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix pipe operator usage in R\contracts.R Replace %>% with native |> pipe in contracts.R Feb 22, 2026
Copilot AI requested a review from smasongarrison February 22, 2026 23:38
@smasongarrison smasongarrison marked this pull request as ready for review February 22, 2026 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix 'Use the |&gt; pipe operator instead of the %&gt;% pipe operator.' issue in R\contracts.R

2 participants