Displaying 20 results from an estimated 500 matches similar to: "usage of #import in grDevices/src/qdCocoa.h"
2009 Nov 26
1
compiling on snow leopard: Cocoa errors?!?!?!
Dear R-gurus,
I'm trying to compile R on my new mac. It's snow leopard. So far I've seemed to be doing pretty well. I've looked at
http://cran.r-project.org/bin/macosx/tools/
http://r.research.att.com/exp/
http://r.research.att.com/building.html
http://r.research.att.com/tools/
All of which have been very helpful. Looking at the threads I've got around some X11 issues
2010 Aug 06
1
fix for unsafe ssl options
Hi Niv,
Thanks for your comments. I'm CC'ing the patch author.
On Wed, Aug 04, 2010 at 05:37:44PM +0200, Niv Sardi wrote:
> Do we really need that many ?
> http://www.google.com/codesearch/p?hl=en#5KTrgOW2hXs/pub/nslu2/sources/vsftpd-2.0.4.tar.gz%7CXknrlk4c3C4/vsftpd-2.0.4/ssl.c&q=SSL_CTX_set_cipher_list
>
> vsftpd seems to only be including "DES-CBC3-SHA"
>
2010 Apr 09
0
[LLVMdev] compiler-rt's arm vfp o<= implementation
On 8 April 2010 02:28, Rodolph Perfetta <rodolph.perfetta at arm.com> wrote:
> movhi means mov if unsigned Higher
>
> movls means mov if unsigned Lower or Same
>
>
>
> so depending on the comparison result r0 holds 1 or 0
>
Thanks. Now that I understand the assembly, I think there's another problem.
libgcc's definition of lesf2 is actually
2010 Aug 04
0
fix for unsafe ssl options
Do we really need that many ?
http://www.google.com/codesearch/p?hl=en#5KTrgOW2hXs/pub/nslu2/sources/vsftpd-2.0.4.tar.gz%7CXknrlk4c3C4/vsftpd-2.0.4/ssl.c&q=SSL_CTX_set_cipher_list
vsftpd seems to only be including "DES-CBC3-SHA"
http://www.google.com/codesearch?q=tunable_ssl_ciphers&exact_package=http://ftp.osuosl.org/pub/nslu2/sources/vsftpd-2.0.4.tar.gz&hl=en
That appart
2017 May 23
2
Inconsistency in handling of numeric input with %d by sprintf
https://github.com/Rdatatable/data.table/issues/2171
The fix was easy, it's just surprising to see the behavior change almost on
a whim. Just wanted to point it out in case this is unknown behavior, but
Evan seems to have found this as well.
On Tue, May 23, 2017 at 12:00 PM, Michael Chirico <michaelchirico4 at gmail.com
> wrote:
> Astute observation. And of course we should be
2019 May 27
2
rbind has confusing result for custom sub-class (possible bug?)
Yes, thanks for following up on thread here. And thanks again for clearing
things up, your email was a finger snap of clarity on the whole issue.
I'll add that actually it was data.table's code at fault on the storage
conversion -- note that if you use an arbitrary sub-class 'foo' with no
methods defined, it'll stay integer.
That's because [<- calls as.Date and then
2017 May 23
2
Inconsistency in handling of numeric input with %d by sprintf
I initially thought this is "documented behaviour". ?sprintf says:
Numeric variables with __exactly integer__ values will be coerced to
integer. (emphasis mine).
Turns out this only works when the first value is numeric and not NA, as
shown by the following example:
> sprintf("%d", as.numeric(c(NA,1)))
Error in sprintf("%d", as.numeric(c(NA, 1))) :
invalid
2017 May 19
2
Inconsistency in handling of numeric input with %d by sprintf
Consider
#as.numeric for emphasis
sprintf('%d', as.numeric(1))
# [1] "1"
vs.
sprintf('%d', NA_real_)
> Error in sprintf("%d", NA_real_) :
invalid format '%d'; use format %f, %e, %g or %a for numeric object
>
I understand the error is correct, but if it works for other numeric input,
why doesn't R just coerce NA_real_ to NA_integer_?
2019 May 26
2
rbind has confusing result for custom sub-class (possible bug?)
On Sun, May 26, 2019 at 4:06 AM Michael Chirico
<michaelchirico4 at gmail.com> wrote:
>
> Have finally managed to come up with a fix after checking out sys.calls()
> from within the as.Date.IDate debugger, which shows something like:
>
> [[1]] rbind(DF, DF)
> [[2]] rbind(deparse.level, ...)
> [[3]] `[<-`(`*tmp*`, ri, value = 18042L)
> [[4]] `[<-.Date`(`*tmp*`,
2019 May 26
2
rbind has confusing result for custom sub-class (possible bug?)
Debugging this issue:
https://github.com/Rdatatable/data.table/issues/2008
We have custom class 'IDate' which inherits from 'Date' (it just forces
integer storage for efficiency, hence, I).
The concatenation done by rbind, however, breaks this and returns a double:
library(data.table)
DF = data.frame(date = as.IDate(Sys.Date()))
storage.mode(rbind(DF, DF)$date)
# [1]
2018 Feb 27
2
scale.default gives an incorrect error message when is.numeric() fails on a sparse row matrix (dgeMatrix)
I am attempting to use the lars package with a sparse input feature matrix,
but the following fails:
library(Matrix)
library(lars)
data(diabetes)
attach(diabetes)
x = as(as.matrix(as.data.frame(x)), 'dgCMatrix')
lars(x, y, intercept = FALSE)
Error in scale.default(x, FALSE, normx) :
>
> length of 'scale' must equal the number of columns of 'x'
>
>
More
2019 Jun 02
1
rbind has confusing result for custom sub-class (possible bug?)
I thought it would be good to summarize my thoughts, since I made a
few hypotheses that turned out to be false.
This isn't a bug in base R, in either rbind() or `[<-.Date`.
To summarize the root cause:
base::rbind.data.frame() calls `[<-` for each column of the
data.frame, and there is no `[<-.IDate` method to ensure the
replacement value is converted to integer. And, in fact,
2020 Apr 30
1
Translations and snprintf on Windows
[a bit unsure on if this is maybe better for r-package-devel]
We recently added translations to messages at the R and C level to
data.table.
At the C level, we did _() wrapping for char arrays supplied to the
following functions: error, warning, Rprintf, Error, and snprintf.
This seemed OK but the use of snprintf specifically appears to have caused
a crash on Windows:
2018 May 18
0
Error message truncation
Help pages for stop/warning reference the option "warning.length", e.g.
from ?stop:
Errors will be truncated to getOption("warning.length") characters, default
> 1000.
Essentially the same is in ?warning.
Neither of these mention the hard-coded limits on the acceptable values of
this option in options.c
2016 May 23
3
R without graphics
Is it possible to configure and build an R without any graphics support.
I..e no grDevices or graphics packages?
I tried "--with-x=no --with-cairo=no --with-grDevices=no
--with-graphics=no"
but it is still building grDevices.
My problem is that I am using experimenting with a compiler that cannot
compile the Objective-C file, qdCocoa.m, and I don't need graphics for
this
2018 Mar 05
1
model.frame strips class as promised, but fails to strip OBJECT in C
Full thread here:
https://github.com/tidyverse/broom/issues/287
Reproducible example:
is.object(freeny$y)
# [1] TRUE
attr(freeny$y, 'class')
# [1] "ts"
class(freeny$y)
# [1] "ts"
# ts attribute wiped by model.frame
class(model.frame(y ~ ., data = freeny)$y)
# [1] "numeric"
attr(model.frame(y ~ ., data = freeny)$y, 'class')
# NULL
# but still:
2012 Oct 07
1
Problem with national characters in main, xlab, ylab with pdf{grDevices} / postscript {grDevices}
Hello.
I'm trying to make some graphics with nationalized labels (pdf for use
in LaTeX document).
On console (displayed on screen) using all looks ok:
----------------------------------------\/
data<-rnorm(100)
hist(data,main='Rozk?ad g?sto?ci punkt?w', xlab='Warto?? na osi y',
ylab='Cz?sto?? wyst?powania')
-------------------------------------------/\
But
2019 Oct 06
2
Strange "no-echo" in place of "slave"
SVN revision replaces "slave" with "no-echo" in R devel.
In each of the following, "no-echo" is rather strange to me.
- src/gnuwin32/README.Rterm
3) As a no-echo process for ESS mode in NTEmacs with flag --ess.
- src/library/grDevices/src/qdCocoa.m
/* the no-echo thread work until this is NO */
2006 Mar 29
0
bug in pictex() (package:grDevices)
running
pictex()
plot(1:11,(-5:5)^2, type='b', main="Simple_Example_Plot")
dev.off()
(as in the pictex example, but with underscores instead of spaces).
the TeX file contains
\put {Simple_Example_Plot} [lB] <0.00pt,0.00pt> at 124.00 275.33
the underscores have a special meaning in TeX, so they should be quoted
or converted to dashes.
--
Sam Steingold
2010 Aug 31
1
Where can I download/install grDevices
Hi folks,
Debian 504 64 bit
grDevices is NOT on Debian repo
$ apt-cache search r-cran | grep grDevices
no printout
On R
$ sudo R
> install.packages("grDevices", dependencies=TRUE))
Warning in install.packages("grDevices") :
argument 'lib' is missing: using '/usr/local/lib/R/site-library'
--- Please select a CRAN mirror for use in this session ---