[Rd] Printing buglet for latin1 encoded strings

2015-09-10 Thread Hadley Wickham
x <- c("août", "élève", "ça va") y <- iconv(x, "UTF-8", "latin1") x #> [1] "août" "élève" "ça va" y #> [1] "août""élève" "ça va" (note the difference in spacing) On both R-release (mac) and R-devel (linux). nchar() and format() both look ok. Hadley -- http://had.co.nz/ _

Re: [Rd] Using IDs to suppress specific messages and warnings

2015-09-10 Thread luke-tierney
On Thu, 10 Sep 2015, Richard Cotton wrote: Thanks Luke, On 10 September 2015 at 14:47, wrote: Conditions have classes and the condition system is designed around the idea that classes would be used for this sort of thing. That is already how tryCatch and withCallingHandlers discriminate the

Re: [Rd] Using IDs to suppress specific messages and warnings

2015-09-10 Thread Duncan Murdoch
On 10/09/2015 9:03 AM, Richard Cotton wrote: > Thanks Luke, > > On 10 September 2015 at 14:47, wrote: >> Conditions have classes and the condition system is designed around >> the idea that classes would be used for this sort of thing. That is >> already how tryCatch and withCallingHandlers disc

Re: [Rd] Using IDs to suppress specific messages and warnings

2015-09-10 Thread Richard Cotton
Thanks Luke, On 10 September 2015 at 14:47, wrote: > Conditions have classes and the condition system is designed around > the idea that classes would be used for this sort of thing. That is > already how tryCatch and withCallingHandlers discriminate the > conditions to handle. That makes sense

Re: [Rd] Using IDs to suppress specific messages and warnings

2015-09-10 Thread luke-tierney
Conditions have classes and the condition system is designed around the idea that classes would be used for this sort of thing. That is already how tryCatch and withCallingHandlers discriminate the conditions to handle. Designing and implementing a condition class hierarchy to support this is ind

Re: [Rd] Proposed change in file.exists() to tolerate Windows

2015-09-10 Thread Richard Cotton
Two solutions: 1. Use the wrapper function is_existing_file in assertive. 2. Use standardize_path in pathological before you call file.exists. On 27 August 2015 at 17:02, Paul Johnson wrote: > I'm writing to ask if R Core would make file.exists more Windows > tolerant when the argument has a

[Rd] Using IDs to suppress specific messages and warnings

2015-09-10 Thread Richard Cotton
The suppressMessages and suppressWarnings functions currently suppress all the message or warnings that are generated by the input expression. The ability to suppress only specific messages or warnings is sometimes useful, particularly for cases like file import where there are lots of things that