You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
R_ClosureExpr() / BODY_EXPR(): Used in r_fn_body(), which is only used in zap_srcref(). Should be fine to call R-level body() instead.
Potentially problematic:
SET_ENCLOS(): Used to mutate parent environment in quosure evaluation inside data masks. It would be helpful if we could continue to use it to avoid a perf hit when evaluating with many groups. See also Remove SET_ENCLOS() usage #1707
Problematic:
SETLENGTH() / SET_TRUELENGTH(): Used in rlang C API for resizing. Would be nice to get these added to the official API. Also used in vctrs and data.table.
C version of delayedAssign (needed for magrittr placeholder)
Predicate to test if a binding is a promise (needed for rlang's env-printer, to prevent arbitrary executions while inspecting envs, etc). Could probably take the form of a "binding type" function that returns an extensible enum.
Version of getVar() that returns error codes? We either can't afford protecting ourselves from these jumpy R errors, or we'd like to throw our own errors with tailored messages r-devel/r-svn@29a2fda
Or better, a function that returns the binding type:
-> direct, promiseDelayed, promiseForced, active, missing, unbound.
Speculative:
Iterator for attribute lists, to work around the removal of ATTRIB()?
Or at least a way to get the attribute names?
Activity
lionel- commentedon Jun 24, 2024
@DavisVaughan proposed to use ALTREP views for resizing to length.
Replace STRING_PTR with STRING_PTR_RO (#1719)
lionel- commentedon Jul 2, 2024
Found non-API calls to R:
ENVFLAGSRemoveenv_unlock()#1705FRAMERemove environment accessors #1721HASHTABRemove environment accessors #1721LEVELSRemoveLEVELS()accessor #1726NAMED5634e96PRENVPRVALUERDEBUGRemove usage ofRDEBUG()andSET_RDEBUG()#1727R_PromiseExpr,Rf_findVarInFrame3SETLENGTHSET_BODYSET_CLOENV,SET_ENCLOSSET_ENVFLAGSRemoveenv_unlock()#1705SET_FORMALSSET_GROWABLE_BIT,SET_RDEBUGRemove usage ofRDEBUG()andSET_RDEBUG()#1727SET_TRUELENGTHSET_TYPEOFSTRING_PTR,XTRUELENGTHlionel- commentedon Jul 2, 2024
Requests/contribs for R core (WIP):
LEVELS()in (see rlang RemoveLEVELS()accessor #1726), a predicate to determine if a CHARSXP is encoded in UTF8. Added in wch/r-source@0c753e4getVar()that returns error codes? We either can't afford protecting ourselves from these jumpy R errors, or we'd like to throw our own errors with tailored messages r-devel/r-svn@29a2fdaOr better, a function that returns the binding type:
-> direct, promiseDelayed, promiseForced, active, missing, unbound.
Speculative:
ATTRIB()?Or at least a way to get the attribute names?