Displaying 14 results from an estimated 14 matches for "destructur".
Did you mean:
destructor
2023 Mar 11
1
Multiple Assignment built into the R Interpreter?
...> language, i.e. that all statements are expressions and have a value.
How about reframing this feature request from multiple assignment
(which does go contrary to "everything has only one value, even if it's
sometimes invisible(NULL)") to "structured binding" / "destructuring
assignment" [*], which takes this single single value returned by the
expression and subsets it subject to certain rules? It may be easier to
make a decision on the semantics for destructuring assignment (e.g.
languages which have this feature typically allow throwing unneeded
parts of the...
2023 Mar 11
2
Multiple Assignment built into the R Interpreter?
...possible to get fairly close to your proposed semantics
using the existing metaprogramming facilities in R. I put together a
prototype package here to demonstrate:
https://github.com/kevinushey/dotty
The package exports an object called `.`, with a special `[<-.dot` S3
method which enables destructuring assignments. This means you can
write code like:
.[nr, nc] <- dim(mtcars)
and that will define 'nr' and 'nc' as you expect.
As for R CMD check warnings, you can suppress those through the use of
globalVariables(), and that can also be automated within the package.
The &...
2023 Mar 11
1
Multiple Assignment built into the R Interpreter?
...e. that all statements are expressions and have a value.
>
> How about reframing this feature request from multiple assignment
> (which does go contrary to "everything has only one value, even if it's
> sometimes invisible(NULL)") to "structured binding" / "destructuring
> assignment" [*], which takes this single single value returned by the
> expression and subsets it subject to certain rules? It may be easier to
> make a decision on the semantics for destructuring assignment (e.g.
> languages which have this feature typically allow throwing un...
2023 Mar 11
1
Multiple Assignment built into the R Interpreter?
...a value.
> >
> > How about reframing this feature request from multiple assignment
> > (which does go contrary to "everything has only one value, even
> if it's
> > sometimes invisible(NULL)") to "structured binding" / "destructuring
> > assignment" [*], which takes this single single value returned by the
> > expression and subsets it subject to certain rules? It may be
> easier to
> > make a decision on the semantics for destructuring assignment (e.g.
> > languages wh...
2023 Mar 11
3
Multiple Assignment built into the R Interpreter?
...nts are expressions and have a value.
> >
> > How about reframing this feature request from multiple assignment
> > (which does go contrary to "everything has only one value, even if it's
> > sometimes invisible(NULL)") to "structured binding" / "destructuring
> > assignment" [*], which takes this single single value returned by the
> > expression and subsets it subject to certain rules? It may be easier to
> > make a decision on the semantics for destructuring assignment (e.g.
> > languages which have this feature typical...
2023 Mar 12
2
Multiple Assignment built into the R Interpreter?
...our proposed semantics
> using the existing metaprogramming facilities in R. I put together a
> prototype package here to demonstrate:
>
> https://github.com/kevinushey/dotty
>
> The package exports an object called `.`, with a special `[<-.dot` S3
> method which enables destructuring assignments. This means you can
> write code like:
>
> .[nr, nc] <- dim(mtcars)
>
> and that will define 'nr' and 'nc' as you expect.
>
> As for R CMD check warnings, you can suppress those through the use of
> globalVariables(), and that can also b...
2023 Mar 12
1
Multiple Assignment built into the R Interpreter?
...; prototype package here to demonstrate:
>
> https://github.com/kevinushey/dotty
> <https://github.com/kevinushey/dotty>
>
> The package exports an object called `.`, with a special
> `[<-.dot` S3
> method which enables destructuring assignments. This means you can
> write code like:
>
> ? ? .[nr, nc] <- dim(mtcars)
>
> and that will define 'nr' and 'nc' as you expect.
>
> As for R CMD check warnings, you can suppress those through the
> u...
2023 Mar 12
1
Multiple Assignment built into the R Interpreter?
...to demonstrate:
> >
> > https://github.com/kevinushey/dotty
> > <https://github.com/kevinushey/dotty>
> >
> > The package exports an object called `.`, with a special
> > `[<-.dot` S3
> > method which enables destructuring assignments. This means you
> can
> > write code like:
> >
> > .[nr, nc] <- dim(mtcars)
> >
> > and that will define 'nr' and 'nc' as you expect.
> >
> > As for R CMD check warnings, you can supp...
2023 Mar 13
1
Multiple Assignment built into the R Interpreter?
...> > ??????? https://github.com/kevinushey/dotty
> > > ??????? <https://github.com/kevinushey/dotty>
> > >
> > > ??????? The package exports an object called `.`, with a special
> > > ??????? `[<-.dot` S3
> > > ??????? method which enables destructuring assignments. This
> > > means you
> > can
> > > ??????? write code like:
> > >
> > > ???????????? .[nr, nc] <- dim(mtcars)
> > >
> > > ??????? and that will define 'nr' and 'nc' as you expect.
> > >
> &...
2023 Mar 13
1
Multiple Assignment built into the R Interpreter?
...???? https://github.com/kevinushey/dotty
>>>> ??????? <https://github.com/kevinushey/dotty>
>>>>
>>>> ??????? The package exports an object called `.`, with a special
>>>> ??????? `[<-.dot` S3
>>>> ??????? method which enables destructuring assignments. This
>>>> means you
>>> can
>>>> ??????? write code like:
>>>>
>>>> ???????????? .[nr, nc] <- dim(mtcars)
>>>>
>>>> ??????? and that will define 'nr' and 'nc' as you expect.
>&g...
2023 Mar 11
1
Multiple Assignment built into the R Interpreter?
...and have a value.
> > >
> > > How about reframing this feature request from multiple assignment
> > > (which does go contrary to "everything has only one value, even if it's
> > > sometimes invisible(NULL)") to "structured binding" / "destructuring
> > > assignment" [*], which takes this single single value returned by the
> > > expression and subsets it subject to certain rules? It may be easier to
> > > make a decision on the semantics for destructuring assignment (e.g.
> > > languages which have...
2018 Sep 21
3
backup of tdb files
...\E1\8C\03{\81\D3\8B\D9\D5\81\C4-\02\E8Cq\F9\A1[\F4\19\A7\22\D5\C4\A8~\B1\A6;\85;\F4\0C\CC\B6\86\99\8C\FF\9E\9A\17\02\00\00\00\06\00\00\00\00\00\00\00\06\00\00\00UNDEF\00\00\00\07\00\00\00\00\00\00\00\07\00\00\00UNDEF$\00\00\00\00\00\00"
}
How stable are those values? Is there a way to destructure them
for the backup to reconstruct them during restore in case the
format changes?
What about portability? Are tdb contents platform independent? Is
a secrets.tdb created with 32 bit Samba usable on a 64 bit build
and vice versa?
Thanks,
Philipp
-------------- next part --------------
A non-te...
2023 Mar 11
1
Multiple Assignment built into the R Interpreter?
On 11/03/2023 9:54 a.m., Sebastian Martin Krantz wrote:
> Thanks Duncan,
>
> I know about list2env(), in fact a previous version of collapse::`%=%`
> was coded as
>
> "%=%" <- function(lhs, rhs) {
> ?? if(!is.character(lhs)) stop("lhs needs to be character")
> ?? if(!is.list(rhs)) rhs <- as.vector(rhs, "list")
> ?? if(length(lhs)
2018 Sep 21
0
backup of tdb files
...> \02\E8Cq\F9\A1[\F4\19\A7\22\D5\C4\A8~\B1\A6;\85;\F4\0C\CC\B6\86\99\8C
> \FF\9E\9A\17\02\00\00\00\06\00\00\00\00\00\00\00\06\00\00\00UNDEF\00\
> 00\00\07\00\00\00\00\00\00\00\07\00\00\00UNDEF$\00\00\00\00\00\00"
> }
>
> How stable are those values? Is there a way to destructure them
> for the backup to reconstruct them during restore in case the
> format changes?
Thankfully this file and these values shouldn't be needed.
> What about portability? Are tdb contents platform independent? Is
> a secrets.tdb created with 32 bit Samba usable on a 64 bit buil...