Skip to content

Use names= rather than .Names= in structure() - #257

Open
Bisaloo wants to merge 1 commit into
Bioconductor:develfrom
Bisaloo:structure-names
Open

Use names= rather than .Names= in structure()#257
Bisaloo wants to merge 1 commit into
Bioconductor:develfrom
Bisaloo:structure-names

Conversation

@Bisaloo

@BisalooBisaloo commented Aug 19, 2026

Copy link
Copy Markdown
Member

The latter returns the following warning:

Warning in structure(msg, .Names = tail(as.character(cl), 1L)) :
Replacing special names ‘.Names’ is deprecated; use ‘names’ instead.

Introduced in r-devel/r-svn@ec9dbae.

Should this get a NEWS bullet?

As an aside, I would find setNames() slightly more readable so if you agree, I'm happy to add a new commit for that.

The latter returns the following warning:
Warning in structure(msg, .Names = tail(as.character(cl), 1L)) :
Replacing special names ‘.Names’ is deprecated; use ‘names’ instead.
Introduced in r-devel/r-svn@ec9dbae.
@codecov

codecovBot commented Aug 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 69.17%. Comparing base (20f99c6) to head (31d6bf8).
⚠️ Report is 2 commits behind head on devel.

Additional details and impacted files
@@ Coverage Diff @@## devel #257 +/- ##
=======================================
Coverage 69.17% 69.17% =======================================
Files 15 15 Lines 3046 3046 =======================================
Hits 2107 2107 Misses 939 939 

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for freeto 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.

1 participant

@Bisaloo