Re: [Rd] R-4.3 version list.files function could not work correctly in chinese

2023-08-11 Thread Yihui Xie
Yes, I participated in the discussion. Basically dir() failed to list all files since R 4.3.0 when filenames start with Chinese characters. I don't have a Windows machine to test it, but this might be a minimal reproducible example: file.create("常用代码.R") dir() The OP said dir() would return "常用代码

[Rd] R 4.3: Change in behaviour of as.character.POSIXt for datetime values with midnight time

2023-08-11 Thread Andy Teucher
I understand that `as.character.POSIXt()` had an overhaul in R 4.3 (https://github.com/wch/r-source/commit/f6fd993f8a2f799a56dbecbd8238f155191fc31b), and I have come across a new behaviour and I wonder if it is unintended? When calling `as.character.POSIXt()` on a vector that contains elements w

Re: [Rd] Improving user-friendliness of S4 dispatch failure when mis-naming arguments?

2023-08-11 Thread Michael Chirico via R-devel
> I'm not entirely sure about the extra call. = FALSE My thinking is the signature of the internal .InheritForDispatch() is not likely to help anyone, in fact having the opposite effect for beginners unsure how to use that info. > Now I'd like to find an example that only uses packages with prior

Re: [Rd] R-4.3 version list.files function could not work correctly in chinese

2023-08-11 Thread Ivan Krylov
Dear 叶月光, Thank you for your message, but please follow the posting guide in your future messages: https://www.r-project.org/posting-guide.html https://www.r-project.org/bugs.html I understand from your link that list.files() ends up skipping some Chinese filenames in R-4.3.1 (but not R-4.2.2) on

[Rd] R-4.3 version list.files function could not work correctly in chinese

2023-08-11 Thread 叶月光
��ã� R-4.3�汾�°汾��R��list.files�ȡȫ���ļ���Ϣ��BUG�ж���û��ᵽ��⣬ϣ��Ľ� r4.3�汾��dir�ȡȫ���ļ� - COS��̳ | ͳ��֮�� | ͳ��ݿ�ѧ��̳ (cosx.org) ���ļ��б

Re: [Rd] Improving user-friendliness of S4 dispatch failure when mis-naming arguments?

2023-08-11 Thread Martin Maechler
> Michael Chirico via R-devel > on Thu, 10 Aug 2023 23:56:45 -0700 writes: > Here's a trivial patch that offers some improvement: > Index: src/library/methods/R/methodsTable.R > === > --- src/library/methods/