Displaying 20 results from an estimated 32 matches for "4dpiecharts".
2015 May 25
2
Unicode display problem with data frames under Windows
...correctly UTF-8.
Encoding(as.character(d$x))
## [1] "UTF-8"
Under Linux both forms of printing are fine for me.
I'm not quite sure whether I've missed a setting or if this is a bug, so
Am I doing something silly?
Can anyone else reproduce this?
--
Regards,
Richie
Learning R
4dpiecharts.com
[[alternative HTML version deleted]]
2015 Nov 23
1
capturing warnings using capture.output
...;
Capturing warnings doesn't seems to work:
capture.output(warning("!!!"), type = "message")
## character(0)
## Warning message:
## In eval(expr, envir, enclos) : !!!
Is the documentation wrong, or is this a bug, or am I doing doing silly?
--
Regards,
Richie
Learning R
4dpiecharts.com
[[alternative HTML version deleted]]
2016 Oct 27
1
using with inside loop breaks next
...2) next else print(a))
}
I expect 1 and 3 to be printed, but I see
[1] 1
Error in eval(expr, envir, enclos) :
no loop for break/next, jumping to top level
Is this
a) by design, or
b) a bug, or
c) a thing that is rare enough that I should just rewrite my code?
--
Regards,
Richie
Learning R
4dpiecharts.com
2012 Mar 21
2
Why is there no within.environment function?
...y <- runif(5)
}
)
This throws an error, since within.environment doesn't exist.? I
realise I can work around it using
as.environment(within(as.list(e),
{
x <- 1:5
y <- runif(5)
}
))
Just wondering why I can't use within directly with environments.
--
4dpiecharts.com
2014 Dec 04
1
\U with more than 4 digits returns the wrong character
...ve something silly going on with my setup.
>>
>> --
>> Regards,
>> Richie
>>
>> ______________________________________________
>> R-devel at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-devel
--
Regards,
Richie
Learning R
4dpiecharts.com
2015 Sep 10
2
Using IDs to suppress specific messages and warnings
...")
}
}
)
}
The hard part is providing IDs for all the existing messages in R and
its packages. It's certainly do-able, but I imagine would take quite
a lot of time.
Is there any enthusiasm for implementing this feature, or something like it?
--
Regards,
Richie
Learning R
4dpiecharts.com
2015 May 25
5
Unicode display problem with data frames under Windows
...for me.
> >
> > I'm not quite sure whether I've missed a setting or if this is a bug, so
> >
> > Am I doing something silly?
> > Can anyone else reproduce this?
> >
> > --
> > Regards,
> > Richie
> >
> > Learning R
> > 4dpiecharts.com
> >
> > [[alternative HTML version deleted]]
> >
> > ______________________________________________
> > R-devel at r-project.org mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-devel
> >
>
> [[alternative HTML version deleted]]
&...
2015 Nov 05
2
PDFs and SVGs containing rasterGrobs don't display correctly in some other software
...those files, or with me. Please can you help me narrow it
down.
- Can you reproduce my problem? That is, when you run the above code,
does the file look OK in a PDF reader but blurry in Inkscape?
- Do you know of any issues with using rasterGrobs in PDFs or SVGs?
--
Regards,
Richie
Learning R
4dpiecharts.com
2016 May 04
4
Is it possible to retrieve the last error? (not error *message*)
Hi,
at the R prompt, is it possible to retrieve the last error (as in
condition object of class "error")?
I'm not asking for geterrmessage(), which only returns the error
message (as a character string). I'm basically looking for a
.Last.error or .Last.condition, analogously to .Last.value for values,
which can be used when it is "too late" (not possible) to go back
2015 May 25
0
Unicode display problem with data frames under Windows
..."
>
> Under Linux both forms of printing are fine for me.
>
> I'm not quite sure whether I've missed a setting or if this is a bug, so
>
> Am I doing something silly?
> Can anyone else reproduce this?
>
> --
> Regards,
> Richie
>
> Learning R
> 4dpiecharts.com
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>
[[alternative HTML version deleted]]
2015 May 26
0
Unicode display problem with data frames under Windows
...s, you can get
correct printing by setting the CTYPE part of the locale to
Chinese/Japanese/Korean.
Sys.setlocale("LC_CTYPE", "Chinese")
## [1] "Chinese (Simplified)_People's Republic of China.936"
d
## x
## 1 A ? B ? C
--
Regards,
Richie
Learning R
4dpiecharts.com
2015 Jul 05
1
Are import-reexport-only packages allowed on CRAN?
...re, and package developers who worry about
having lightweight dependencies can just use the parts that they need.
Before I do the refactoring, I wanted to check that it is OK to have a
package without any of its own content (other than vignettes) on CRAN.
Is it OK?
--
Regards,
Richie
Learning R
4dpiecharts.com
2015 Sep 22
1
Differences in printing UTF-8 strings to stdout vs. stderr under Windows
...ng-error-with-unicode-characters-under-windows
How does printing to stderr differ from printing to stdout?
And more importantly, is there any way I can ensure correct printing
of Unicode characters when I need to write to stderr (when throwing
errors or warnings)?
--
Regards,
Richie
Learning R
4dpiecharts.com
2015 Nov 16
0
Best way to implement optional functions?
...the
component packages and reexports them.
That way people who want a small footprint (mostly other package
developers) can specify only what they need, and people who don't care
(mostly end users) can just type library(assertive) and get access to
everything.
--
Regards,
Richie
Learning R
4dpiecharts.com
2016 May 05
1
Too many spaces in deparsed complex numbers with digits17 control option
...I think this is a small bug, and that "%17gi" in the snprintf call
ought to be "%.17gi".
Also there shouldn't be any space around the plus sign for consistency
with the non-digits17 option.
Is this a real bug, or is it deliberate behaviour?
--
Regards,
Richie
Learning R
4dpiecharts.com
2016 May 05
0
Is it possible to retrieve the last error? (not error *message*)
...s "too late" (not possible) to go back an
> use try()/tryCatch().
>
> Thanks,
>
> Henrik
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
--
Regards,
Richie
Learning R
4dpiecharts.com
2016 Nov 03
0
.S4methods inconsistent behavior with methods, .S3methods
...methods are found.
methods(sd)
## no methods found
S3methods(sd)
## no methods found
It seems like the behavior of these functions ought to be consistent.
Maybe they should split the difference and say no methods are found,
but warn the the input is not generic?
--
Regards,
Richie
Learning R
4dpiecharts.com
2011 Jun 10
2
R program writing standard/practices
Dear Experts,
I notice that there are different ways of writing programs. Was wondering if
there is anything like a standard which could be used to write good/complete
R programs, maintain quality, easy to debug, a standard/practice that can be
consistent in an enterprise environment. Also, are there any beacon lights
that could help navigate through lines of code, programming styles,
understand
2011 May 11
0
Reloj en la consola
Buenas.
He visto el siguiente ejemplo en uno de los blogs en inglés (
http://4dpiecharts.com/2011/05/11/a-clock-utility-via-console-hackery/).
Copia y pega el código en la consola de R, verás un resultado curioso:
clock <- function()
{
repeat
{
cat("\r", format(Sys.time(), "%H:%M:%S"))
flush.console()
Sys.sleep(1)
}
}
clock()
--
Dr. Gregorio...
2012 Oct 14
1
How deep can/should lists be nested?
...might be useful for users to be able to know how deeply
they can nest lists though.
Perhaps it would be better to limit nesting to the value of
getOption("expressions"). Does anyone have any strong feelings on
what the correct behaviour should be?
--
Regards,
Richie
live-analytics.com
4dpiecharts.com