On 15 September 2020 at 10:27, Cesko Voeten wrote:
| the language provides an obvious way to do this, why write a semantic kludge
As already said, Occam's Razor give the answer: keep it simple(r) and don't
write the kludge. Stick it all into a package, load the package on every node
and use the
ng as "public namespace".
-----Original Message-
From: R-package-devel On Behalf
Of David Kepplinger
Sent: 13 September 2020 20:52
To: R Package Devel
Subject: [R-pkg-devel] Use of `:::` in a package for code run in a
parallel cluster
Dear list members,
I submitted an upd
rateful to CRAN for asking me to
> > export and hence document this.
> >
> >
> > Georgi Boshnakov
> >
> > PS Note that there is no such thing as "public namespace".
> >
> >
> > -Original Message-
> > From: R-package-devel O
uot;.
>
>
> -Original Message-----
> From: R-package-devel On Behalf
> Of David Kepplinger
> Sent: 13 September 2020 20:52
> To: R Package Devel
> Subject: [R-pkg-devel] Use of `:::` in a package for code run in a
> parallel cluster
>
> Dear list members,
>
Murdoch
Sent: Monday, September 14, 2020 10:49 AM
To: Wang, Zhu ; David Kepplinger ; R
Package Devel
Subject: Re: [R-pkg-devel] Use of `:::` in a package for code run in a parallel
cluster
On 14/09/2020 10:30 a.m., Wang, Zhu wrote:
In mypkg, I want to call a function foo from pkg, and foo is
: Wang, Zhu ; David Kepplinger
; R Package Devel
Subject: Re: [R-pkg-devel] Use of `:::` in a package for code run in a parallel
cluster
On 14/09/2020 10:30 a.m., Wang, Zhu wrote:
> In mypkg, I want to call a function foo from pkg, and foo is not exported. I
> thought I should use pkg::
coming from a
user script.
-Original Message-
From: Duncan Murdoch
Sent: Monday, September 14, 2020 7:17 AM
To: Wang, Zhu ; David Kepplinger ; R
Package Devel
Subject: Re: [R-pkg-devel] Use of `:::` in a package for code run in a parallel
cluster
On 13/09/2020 8:47 p.m., Wang, Zhu wr
ose if the call is
>coming from a user script.
>
>-Original Message-
>From: Duncan Murdoch
>Sent: Monday, September 14, 2020 7:17 AM
>To: Wang, Zhu ; David Kepplinger
>; R Package Devel
>
>Subject: Re: [R-pkg-devel] Use of `:::` in a package for code run in a
>para
of those if the call is coming from a
> user script.
-Original Message-
From: Duncan Murdoch
Sent: Monday, September 14, 2020 7:17 AM
To: Wang, Zhu ; David Kepplinger
; R Package Devel
Subject: Re: [R-pkg-devel] Use of `:::` in a package for code run in a parallel
cluster
On 13/09
13, 2020 3:20 PM
To: David Kepplinger ; R Package Devel
Subject: Re: [R-pkg-devel] Use of `:::` in a package for code run in a parallel
cluster
On 13/09/2020 3:51 p.m., David Kepplinger wrote:
Dear list members,
I submitted an update for my package and got automatically rejected by
the incoming
ful to CRAN for asking me to export and hence
document this.
Georgi Boshnakov
PS Note that there is no such thing as "public namespace".
-Original Message-
From: R-package-devel On Behalf Of
David Kepplinger
Sent: 13 September 2020 20:52
To: R Package Devel
Subject: [
import not declared from: ‘pkg'
I probably missed something here.
Thanks,
Zhu
-Original Message-
From: R-package-devel On Behalf Of
Duncan Murdoch
Sent: Sunday, September 13, 2020 3:20 PM
To: David Kepplinger ; R Package Devel
Subject: Re: [R-pkg-devel] Use of `:::` in a package fo
Thank you all for the discussion and suggestions.
so making a package function baz available makes all functions in the
> package available -- a function in the package already has access to other
> functions in the namespace, whether those functions are exported or not, so
> there is no need to u
On Sun, Sep 13, 2020 at 3:19 PM Duncan Murdoch wrote:
>
> On 13/09/2020 3:51 p.m., David Kepplinger wrote:
> > Dear list members,
> >
> > I submitted an update for my package and got automatically rejected by the
> > incoming checks (as expected from my own checks) for using `:::` calls to
> > acc
At least in the 'parallel' package
library(parallel)
cl = makePSOCKcluster(2)
and because of the nature of the R language, the entire namespace is exported,
analogous to
baz <- local({
foo <- function() 2
function(...) foo()
})
so making a package function baz available makes all funct
On 13/09/2020 3:51 p.m., David Kepplinger wrote:
Dear list members,
I submitted an update for my package and got automatically rejected by the
incoming checks (as expected from my own checks) for using `:::` calls to
access the package's namespace.
"There are ::: calls to the package's namespace
Dear list members,
I submitted an update for my package and got automatically rejected by the
incoming checks (as expected from my own checks) for using `:::` calls to
access the package's namespace.
"There are ::: calls to the package's namespace in its code. A package
*almost* never needs to use
17 matches
Mail list logo