Skip to content

Commit a28e334

Browse files
committed
Add RFunction::new_inlined() ctor
1 parent f895364 commit a28e334

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

crates/harp/src/exec.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,13 @@ impl RFunction {
120120
Self::new_ext(package, function, true)
121121
}
122122

123+
pub fn new_inlined(function: impl Into<RObject>) -> Self {
124+
RFunction {
125+
call: RCall::new(function),
126+
is_namespaced: false,
127+
}
128+
}
129+
123130
fn new_ext(package: &str, function: &str, internal: bool) -> Self {
124131
unsafe {
125132
let is_namespaced = !package.is_empty();

0 commit comments

Comments
 (0)