Displaying 16 results from an estimated 16 matches for "attali".
2015 Jul 12
2
Why no support for 3-digit HEX colours?
..., is there a strong reason not to accept
3-character HEX codes? In CSS and many other languages, a colour of "#ABC"
is automatically converted to "#AABBCC", and I was wondering if R could
support that as well, or if it was a conscious decision to not support it.
---
http://deanattali.com
[[alternative HTML version deleted]]
Suggestion/opinions: add a `absolute` param to `normalizePath()` to force returning an absolute path
2020 Apr 14
4
Suggestion/opinions: add a `absolute` param to `normalizePath()` to force returning an absolute path
This request stems off a bug report I posted
https://bugs.r-project.org/bugzilla/show_bug.cgi?id=17757 where it was
determined the current behaviour is as expected.
To recap: when given a real file, normalizePath() always* returns the full
absolute path. When given a non-existent file, normalizePath() returns a
full path on Windows but it returns the input on other systems*. I'd argue
that
2019 Feb 20
2
Bug in print.default: dispatches to global show instead of methods::show
This is related to a problem that was fixed in 2015
https://github.com/wch/r-source/commit/38ea40dcd0353af16d35296ee621338c49ae48c9
The problem then was that auto-printing by typing an object to the console
would search for show() in the globalenv instead of in the methods
namespace.
The problem I would like to report is that it seems that when an S4 object
is printed with print(), a similar
2015 Jun 30
2
Defining a `show` function breaks the print-ing of S4 object -- bug or expected?
...that
`show` would be namespaced and therefore should not break.
I'm wondering if this is intended behaviour, or if this is a problem. My
intuition, and Hadley agreed on Twitter, is that defining a `show` method
should not have such a grave effect on printing S4 objects.
Thanks
---
http://deanattali.com
[[alternative HTML version deleted]]
2015 Aug 03
2
'vapply' not returning list element names when returned element is a length-1 list
...[[2]]
> [[2]]$foo
> [1] "bar"
>
> [[3]]
> [[3]]$foo
> [1] "bar"
I'm not sure if this is intentional or a bug, but it's made my life more
difficult on several occasions and I don't see any reason it would behave
like this.
Thanks
---
http://deanattali.com
[[alternative HTML version deleted]]
2019 Apr 18
2
Re: [libvirt] Why virsh domxml-to-native qemu-argv changes PCI slot number
Moving to libvirt-users where it belongs.
On Thu, 2019-04-18 at 06:47 +0000, Tal Attaly wrote:
> Hi,
> I have bridge type interface defined with slot 3 -
> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
> but after running virsh domxml-to-native qemu-argv I get slot 2-
> -netdev tap,fd=21,id=hostnet0 -device
2019 Apr 18
0
Re: [libvirt] Why virsh domxml-to-native qemu-argv changes PCI slot number
On Thu, Apr 18, 2019 at 04:23:05PM +0200, Andrea Bolognani wrote:
> Moving to libvirt-users where it belongs.
>
> On Thu, 2019-04-18 at 06:47 +0000, Tal Attaly wrote:
> > Hi,
> > I have bridge type interface defined with slot 3 -
> > <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
> > but
2015 Jun 30
0
Defining a `show` function breaks the print-ing of S4 object -- bug or expected?
...f the problem is:
show <- function(...) stop("My show!")
methods::setClass("Person", slots = list(name = "character"))
methods::new("Person", name = "Tom")
#> Error in (function (...) : My show!
Hadley
On Tue, Jun 30, 2015 at 9:02 AM, Dean Attali <daattali at gmail.com> wrote:
> Hi r-devel
>
> If you define a function named `show` or attach a package with an exported
> `show` function, then printing/vieweing S4 objects breaks. This is probably
> because the `print` function calls `show`, which is now masked.
>
> E...
2015 Aug 05
0
'vapply' not returning list element names when returned element is a length-1 list
> -----Original Message-----
> From: R-devel [mailto:r-devel-bounces at r-project.org] On Behalf Of Dean Attali
> If i have a function that returns a named list with 2 (or more) elements,
> then using 'vapply' retains the names of the elements:
> ....
> But if the function only returns one element, then the name "foo" is lost
vapply _always simplifies_ according to the documen...
2018 Jun 29
1
Bug in tools::md5sum - does not work when filepath contains tilde (ie home directory)
I've reproduced on ubuntu and winodws with R3.4.3
When the filepath contains a tilde, the result is NA. But if the file path
is expanded then the function works.
Example:
tools::md5sum("~/.Rprofile") returns NA
tools::md5sum(normalizePath("~/.Rprofile")) returns the proper md5
Perhaps this is expected behaviour because the documentation does say NA is
returned for
2019 Feb 21
0
Bug in print.default: dispatches to global show instead of methods::show
...it:
https://github.com/wch/r-source/commit/b59a1526085d1b4375b184d35118c6fd6f003912#diff-12de104c9320556f0e99da345c6fb259 <https://github.com/wch/r-source/commit/b59a1526085d1b4375b184d35118c6fd6f003912#diff-12de104c9320556f0e99da345c6fb259>
Best,
Lionel
> On 21 Feb 2019, at 00:07, Dean Attali <daattali at gmail.com> wrote:
>
> This is related to a problem that was fixed in 2015
> https://github.com/wch/r-source/commit/38ea40dcd0353af16d35296ee621338c49ae48c9
> The problem then was that auto-printing by typing an object to the console
> would search for show() in th...
Suggestion/opinions: add a `absolute` param to `normalizePath()` to force returning an absolute path
2020 Apr 14
0
Suggestion/opinions: add a `absolute` param to `normalizePath()` to force returning an absolute path
...n-the-ground need
to NOT go down all he way to physical paths on a remote compute system
because of how IT handled implementing constant pathing on top of swapping
out hardware, and I can't imagine i'm the only one who has ever faced such
an issue.
~G
On Tue, Apr 14, 2020 at 10:03 AM Dean Attali <daattali at gmail.com> wrote:
> This request stems off a bug report I posted
> https://bugs.r-project.org/bugzilla/show_bug.cgi?id=17757 where it was
> determined the current behaviour is as expected.
>
> To recap: when given a real file, normalizePath() always* returns the f...
Suggestion/opinions: add a `absolute` param to `normalizePath()` to force returning an absolute path
2020 Apr 15
0
Suggestion/opinions: add a `absolute` param to `normalizePath()` to force returning an absolute path
...rning in normalizePath("foo/bar") :
#> path[1]="foo/bar": No such file or directory
#> [1] "foo/bar"
fs::path_abs("foo/bar")
#> /Users/jhester/foo/bar
[1]: https://CRAN.R-project.org/package=fs
On Tue, Apr 14, 2020 at 1:03 PM Dean Attali <daattali at gmail.com> wrote:
>
> This request stems off a bug report I posted
> https://bugs.r-project.org/bugzilla/show_bug.cgi?id=17757 where it was
> determined the current behaviour is as expected.
>
> To recap: when given a real file, normalizePath() always* returns t...
2015 Jun 30
2
Defining a `show` function breaks the print-ing of S4 object -- bug or expected?
...clear: the complaint is that the auto-called show() is not
methods::show? I.e. after
x <- methods::new("Person", name = "Tom")
you would expect
show(x)
to give the error, but not
x
??
Duncan Murdoch
>
> Hadley
>
> On Tue, Jun 30, 2015 at 9:02 AM, Dean Attali <daattali at gmail.com> wrote:
>> Hi r-devel
>>
>> If you define a function named `show` or attach a package with an exported
>> `show` function, then printing/vieweing S4 objects breaks. This is probably
>> because the `print` function calls `show`, which is now...
2015 Jul 08
5
Graphical User Interface (GUI)
I'd like to create a user interface for my R code and have only seen mostly
older posts on the subject.
I'm not looking for an IDE for development, but something that the end user
of the software would use.
So something that would involve displaying buttons, listboxes, and drop down
menus to a user that will facilitate various actions.
I doubt there is anything Visual Studio-like that
2015 Jul 08
0
Graphical User Interface (GUI)
Isn't this exactly what Shiny is meant for?
http://shiny.rstudio.com/
---
http://deanattali.com
On 8 July 2015 at 11:43, vthokienj <vthokiesvt at vt.edu> wrote:
> I'd like to create a user interface for my R code and have only seen mostly
> older posts on the subject.
> I'm not looking for an IDE for development, but something that the end user
> of the softwar...