klmr / klmr/sys

Replace `methods::as` usage

Open
#15 0 comments 0 reactions 1 assignee Claimed by @klmr View on GitHub
enhancement
Dominant language
R
Stars
13
Forks
1
PR merge metrics
No merged PRs in 30d

Description

`methods::as` loads the ‹methods› package (gasp!) which, according to the documentation,

> takes about 60% of the startup time.

As it’s used here simply to coerce between basic types, we can simply use `match.fun(paste('as', class, sep = '.'))` instead.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.