File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ use crate::signals::initialize_signal_handlers;
118
118
use crate :: signals:: interrupts_pending;
119
119
use crate :: signals:: set_interrupts_pending;
120
120
use crate :: srcref:: ns_populate_srcref;
121
- use crate :: srcref:: resource_loaded_namespaces ;
121
+ use crate :: srcref:: resource_namespaces ;
122
122
use crate :: startup;
123
123
use crate :: strings:: lines;
124
124
use crate :: sys:: console:: console_to_utf8;
@@ -452,7 +452,7 @@ impl RMain {
452
452
// Namespaces of future loaded packages will be populated on load.
453
453
// (after r_task initialization)
454
454
if do_resource_namespaces ( ) {
455
- if let Err ( err) = resource_loaded_namespaces ( None ) {
455
+ if let Err ( err) = resource_namespaces ( None ) {
456
456
log:: error!( "Can't populate srcrefs for loaded packages: {err:?}" ) ;
457
457
}
458
458
}
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ new_ark_debug <- function(fn) {
67
67
# resource already loaded namespaces so we get virtual documents for
68
68
# step-debugging.
69
69
options(ark.resource_namespaces = TRUE )
70
- .ps.internal(resource_loaded_namespaces (pkgs ))
70
+ .ps.internal(resource_namespaces (pkgs ))
71
71
})
72
72
73
73
.(body(fn ))
@@ -80,6 +80,6 @@ do_resource_namespaces <- function(default) {
80
80
getOption(" ark.resource_namespaces" , default = default )
81
81
}
82
82
83
- resource_loaded_namespaces <- function (pkgs ) {
84
- .ps.Call(" ps_resource_loaded_namespaces " , pkgs )
83
+ resource_namespaces <- function (pkgs ) {
84
+ .ps.Call(" ps_resource_namespaces " , pkgs )
85
85
}
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ use crate::variables::variable::is_binding_fancy;
16
16
use crate :: variables:: variable:: plain_binding_force_with_rollback;
17
17
18
18
#[ tracing:: instrument( level = "trace" ) ]
19
- pub ( crate ) fn resource_loaded_namespaces ( pkgs : Option < Vec < String > > ) -> anyhow:: Result < ( ) > {
19
+ pub ( crate ) fn resource_namespaces ( pkgs : Option < Vec < String > > ) -> anyhow:: Result < ( ) > {
20
20
let pkgs = match pkgs {
21
21
Some ( inner) => inner,
22
22
None => {
@@ -39,9 +39,9 @@ pub(crate) fn resource_loaded_namespaces(pkgs: Option<Vec<String>>) -> anyhow::R
39
39
}
40
40
41
41
#[ harp:: register]
42
- unsafe extern "C" fn ps_resource_loaded_namespaces ( pkgs : SEXP ) -> anyhow:: Result < SEXP > {
42
+ unsafe extern "C" fn ps_resource_namespaces ( pkgs : SEXP ) -> anyhow:: Result < SEXP > {
43
43
let pkgs: Vec < String > = RObject :: view ( pkgs) . try_into ( ) ?;
44
- resource_loaded_namespaces ( Some ( pkgs) ) ?;
44
+ resource_namespaces ( Some ( pkgs) ) ?;
45
45
Ok ( harp:: r_null ( ) )
46
46
}
47
47
You can’t perform that action at this time.
0 commit comments