Re: [Rd] r-base: FTBFS: Add "${boot_path}/zero" for OpenJDK zero build

2025-04-17 Thread Simon Urbanek
Dandan, thanks! Dirk reported it as https://bugs.r-project.org/show_bug.cgi?id=18884 and it should be fixed in R-devel r88154 - please confirm if it works for you and if it does, I'll port it to R 4.5.0 Patched. Cheers, Simon > On Apr 17, 2025, at 3:40 PM, zhangdandan wrote: > > Source: r-

Re: [Rd] R CMD check and CRAN's Rust policy

2025-03-02 Thread Simon Urbanek
Mossa, > On Mar 2, 2025, at 11:45 PM, Mossa Merhi Reimert wrote: > > There has been very little engagement with the issue I referred to. If it was > decided that this “check” ought to be part of the default checks for R, then > that could have been written to us. Either on the bugs.r-project.

Re: [Rd] R CMD check and CRAN's Rust policy

2025-03-01 Thread Simon Urbanek
Mossa, the issue you cite is lacking any pertinent information and it's not even clear why it should be an issue. The check is perfectly justified, it just reports whether a package using rust declares this correctly and where it downloads 3rd party content - something that is important to R us

Re: [Rd] binary R packages for GNU/Linux

2025-02-10 Thread Simon Urbanek
> On Feb 11, 2025, at 5:23 AM, Dirk Eddelbuettel wrote: > > > On 10 February 2025 at 07:35, Carl Boettiger wrote: > | Great discussion. > | > | Just to note another example I don't think was mentioned -- The r-universe > | project also builds binaries for Linux (Ubuntu latest) https:// > |

Re: [Rd] binary R packages for GNU/Linux

2025-02-10 Thread Simon Urbanek
Tobias, although we did discuss the possibility of extending the os/toolchain/architecture notation for binary packages beyond macOS, Linux was not necessarily on the list as Linux distributions have already established ways of providing binaries, so it does not seem productive to duplicate the

Re: [Rd] 64bit integers

2025-01-25 Thread Simon Urbanek
Tony, Dirk sent a good response. I would like to add to that that it goes beyond just bits in SEXP: adding a new type involved in arithmetics is not only a lot of work but has performance implications. Also it is unclear how it should behave in the int32_t, double, int64_t triangle of vector cl

Re: [Rd] Will the R Project be a Mentoring Organization for GSOC 2025?

2025-01-21 Thread Simon Urbanek
Please see the GSoC schedule - for 2025 the organisation applications won't close until February 12 so we may not know the answer until possibly sometime in March (that's assuming there are proposed projects). Cheers, Simon > On Jan 22, 2025, at 6:23 AM, Greg Forkutza wrote: > > Hi there, >

Re: [Rd] Package compression benchmarks for zstd vs gzip

2025-01-15 Thread Simon Urbanek
> Best wishes, > > Heather > > On Mon, Jan 13, 2025, at 1:26 AM, Simon Urbanek wrote: >> I think the first step would have to be to add zstd support to R. zstd >> is a bit controversial (as shown by the community blowback of the >> changes you mentioned) and their

Re: [Rd] Package compression benchmarks for zstd vs gzip

2025-01-12 Thread Simon Urbanek
I think the first step would have to be to add zstd support to R. zstd is a bit controversial (as shown by the community blowback of the changes you mentioned) and their build system (calling it that is being very generous) is mess so it would require a bit of testing, but it is doable. That sa

Re: [Rd] binomial()$linkinv no longer accepts integer values

2025-01-08 Thread Simon Urbanek
> On 9 Jan 2025, at 05:56, Tomas Kalibera wrote: > > > On 1/8/25 17:26, Ben Bolker wrote: >> Thanks, that makes sense. >> >> I guess if it never worked for integers (or hasn't worked in a long time, >> at least) then it doesn't need to be fixed/changed ... > > Still you found out that th

Re: [Rd] R_CheckUserInterrupt() can be a performance bottleneck within GUIs

2024-12-17 Thread Simon Urbanek
It seems benign, but has implications since checking time is actually not a cheap operation: adding jus ta time check alone incurs a penalty of ca. 700% compared with the time it takes to call R_CheckUserInterrupt(). Generally, it makes no sense to check interrupts at every iteration - you'll fi

Re: [Rd] Is it advisable/possible to default on Linux to an EDITOR that actually exists?

2024-12-10 Thread Simon Urbanek
Michael, vi is the only editor that is part of the POSIX standard. Embedded systems have built-in support only for vi (e.g., busybox) so if a system has any editor support at all it is most likely to be vi - it is ubiquitous which is why it's the most logical default. (FWIW no distributions I

Re: [Rd] Exposing native httpd server

2024-12-08 Thread Simon Urbanek
what you asked for - serving static files is something entirely different and it would be easy to add to R if that’s what you actually want and less controversial. Cheers, Simon > So we can leave it at that. Maybe in few more years when I am more familiar > with web architecture and R intern

Re: [Rd] Exposing native httpd server

2024-12-05 Thread Simon Urbanek
Jiří, in a sense there are two quite different issue that you are touching upon. On one hand, your request for exposing the http server is something I was pretty much expecting. In order to judge the appetite for it I have included the support for custom handlers back then as inofficial API spe

Re: [Rd] Embedding R in other applications as a scripting language

2024-10-13 Thread Simon Urbanek
Bryce, embedding R varies from easy to very complex depending on what you want to do with it. If all you want is to evaluate R commands and get the result values then it is easy: you just initialize R with Rf_initialize_R() and use R_tryEval() to evaluate what you need (making sure you stay on

Re: [Rd] Large vector support in data.frames

2024-07-03 Thread Simon Urbanek
The second point is not really an issue - R already uses numerics for larger-than-32-bit indexing at R level and it works just fine for objects up to ca. 72 petabytes. However, the first one is a bit more relevant than one would think. At one point I have experimented with allowing data frames

Re: [Rd] R 4.4.0 has version of Matrix 1.7-0, but it's not available on CRAN

2024-04-26 Thread Simon Urbanek
Everyone, take a deep breath - there have been many disruptions in last few days - some obvious, others associated with the R release and the BioC disruptions on CRAN, so there is no need to panic and start devising "solutions" for issues that are temporary. Things are being sorted out and some

Re: [Rd] Is ALTREP "non-API"?

2024-04-24 Thread Simon Urbanek
> On Apr 25, 2024, at 12:55 AM, Hadley Wickham wrote: > > > > >>> That is not true at all - the presence of header does not constitute > >> declaration of something as the R API. There are cases where internal > >> functions are in the headers for historical or other reasons since the > >> h

Re: [Rd] Is ALTREP "non-API"?

2024-04-23 Thread Simon Urbanek
> On Apr 24, 2024, at 12:52 AM, Hadley Wickham wrote: > >> >> >> ALTREP is part of the official R api, as illustrated by the presence of src/include/R_ext/Altrep.h. Everything declared in the header files in >> that directory is official API AFAIK (and I believe that is more

Re: [Rd] Is ALTREP "non-API"?

2024-04-22 Thread Simon Urbanek
> On Apr 23, 2024, at 10:29 AM, Hadley Wickham wrote: > > > > On Mon, Apr 22, 2024 at 5:14 PM Simon Urbanek > wrote: > > > > On Apr 22, 2024, at 7:37 PM, Gabriel Becker wrote: > > > > Hi Yutani, > > > > ALTREP is part of the off

Re: [Rd] Is ALTREP "non-API"?

2024-04-22 Thread Simon Urbanek
> On Apr 22, 2024, at 7:37 PM, Gabriel Becker wrote: > > Hi Yutani, > > ALTREP is part of the official R api, as illustrated by the presence of > src/include/R_ext/Altrep.h. Everything declared in the header files in that > directory is official API AFAIK (and I believe that is more definitiv

Re: [Rd] RSS Feed of NEWS needs a hand

2024-04-02 Thread Simon Urbanek
Duncan, I have fixed up the repo with git restore-mtime -- I think that should solve it - please check if it did what we needed. Cheers, Simon > On Apr 3, 2024, at 2:41 AM, Duncan Murdoch wrote: > > On 02/04/2024 8:50 a.m., Dirk Eddelbuettel wrote: >> On 2 April 2024 at 07:37, Dirk Eddelbuet

Re: [Rd] Advice debugging M1Mac check errors

2024-02-06 Thread Simon Urbanek
> On 7/02/2024, at 5:06 AM, Prof Brian Ripley via R-devel > wrote: > > On 04/02/2024 19:41, Holger Hoefling wrote: >> Hi, >> I wanted to ask if people have good advice on how to debug M1Mac package >> check errors when you don´t have a Mac? Is a cloud machine the best option >> or is there so

Re: [Rd] Advice debugging M1Mac check errors

2024-02-04 Thread Simon Urbanek
> On Feb 5, 2024, at 12:26 PM, Duncan Murdoch wrote: > > Hi John. > > I don't think the 80 bit format was part of IEEE 754; I think it was an Intel > invention for the 8087 chip (which I believe preceded that standard), and > didn't make it into the standard. > > The standard does talk abo

Re: [Rd] [Feature Request] Hide API Key in download.file() / R's libcurl

2024-02-03 Thread Simon Urbanek
Any reason why you didn't use quiet=TRUE to suppress that output? There is no official API structure for credentials in R repositories, so R has no way of knowing which part of the URL are credentials as it is not under R's purview - it could be part of the path or anything, so there is no way R

Re: [Rd] Determining the size of a package

2024-01-17 Thread Simon Urbanek
William, the check does not apply to binary installations (such as the Mac builds), because those depend heavily on the static libraries included in the package binary which can be quite big and generally cannot be reduced in size - for example: https://www.r-project.org/nosvn/R.check/r-release

Re: [Rd] Sys.which() caching path to `which`

2024-01-10 Thread Simon Urbanek
Harmen, thanks for the additional details, it wasn't exactly clear what this is about. Ivan's post didn't mention that the issue here is the caching, not the path replacement which you are apparently already doing, now it makes more sense. I still think it is dangerous as you have no way of kno

Re: [Rd] Sys.which() caching path to `which`

2024-01-10 Thread Simon Urbanek
Ivan, I suspect that the `which' case is just the tip of the iceberg - generally, R expects all tools it detects at configure time to be callable, just to list a few from a running session: PAGER /usr/bin/less R_BROWSER /usr/bin/open R_BZIPCMD /usr/

Re: [Rd] Regenerate news feeds?

2023-11-17 Thread Simon Urbanek
Tim, thanks. I have updated R to the latest R-devel on the machine in the hope that is may help, but I suspect it will only affect new entries as they are generated progressively each day. Cheers, Simon > On Nov 18, 2023, at 11:38 AM, Tim Taylor > wrote: > > The news feeds (e.g. > https:/

[Rd] GLFW [Was: Wayland Display Support in R Plot]

2023-10-29 Thread Simon Urbanek
ust fine. That said, both points were meant for the list in general - those are nice self-contained projects (add libwayland to Cairo and GLFW to rgl) for someone with spare time to contribute... Cheers, Simon > On 30/10/2023, at 9:48 AM, Duncan Murdoch wrote: > > On 29/10/2023 4

Re: [Rd] Wayland Display Support in R Plot

2023-10-29 Thread Simon Urbanek
> On 30/10/2023, at 8:38 AM, Dirk Eddelbuettel wrote: > > > On 30 October 2023 at 07:54, Paul Murrell wrote: > | I am unaware of any Wayland display support. > | > | One useful way forward would be an R package that provides such a device > | (along the lines of 'Cairo', 'tikzDevice', et al

Re: [Rd] After package update, old S4 method is dispatched

2023-10-02 Thread Simon Urbanek
Jan, have you re-installed all packages? If you change (update) any package that uses S4 it may be necessary to re-install all its reverse-dependencies as well since they may include cached values in their namespaces, so the easiest is to make sure you re-install all packages. Cheers, Simon

Re: [Rd] Help requested: writing text to a raster in memory

2023-09-24 Thread Simon Urbanek
only try to write a new bitmap > when it's safe. > > For future reference, will the measurements reported by > textshaping::shape_text() match the values used by your Cairo package, or are > equivalent measurements available elsewhere? > > Duncan Murdoch > > On

Re: [Rd] Help requested: writing text to a raster in memory

2023-09-24 Thread Simon Urbanek
Duncan, drawing text is one of the most complicated things you can do, so it really depends how for you want to go. You can do it badly with a simple cairo show_text API. The steps involved in doing it properly are detecting the direction of the language, finding fonts, finding glyphs (resolvin

Re: [Rd] Detecting physical CPUs in detectCores() on Linux platforms

2023-08-07 Thread Simon Urbanek
> On 8/08/2023, at 12:07 PM, Dirk Eddelbuettel wrote: > > > On 8 August 2023 at 11:21, Simon Urbanek wrote: > | First, detecting HT vs cores is not necessarily possible in general, Linux > may assign core id to each HT depending on circumstances: > | > | $ grep &

Re: [Rd] Detecting physical CPUs in detectCores() on Linux platforms

2023-08-07 Thread Simon Urbanek
First, detecting HT vs cores is not necessarily possible in general, Linux may assign core id to each HT depending on circumstances: $ grep 'cpu cores' /proc/cpuinfo | uniq cpu cores : 32 $ grep 'model name' /proc/cpuinfo | uniq model name : Intel(R) Xeon(R) Gold 6142 CPU @ 2.60GHz an

Re: [Rd] Correct use of tools::R_user_dir() in packages?

2023-06-28 Thread Simon Urbanek
Carl, I think your statement is false, the whole point of R_user_dir() is for packages to have a well-defined location that is allowed - from CRAN policy: "For R version 4.0 or later (hence a version dependency is required or only conditional use is possible), packages may store user-specific d

Re: [Rd] codetools wrongly complains about lazy evaluation in S4 methods

2023-06-13 Thread Simon Urbanek
I agree that this is not an R issue, but rather user error of not defining a proper generic so the check is right. Obviously, defining a generic with implementation-specific ncol default makes no sense at all, it should only be part of the method implementation. If one was to implement the same

Re: [Rd] nightly r-devel.pkg builds failing since Jan 15

2023-02-26 Thread Simon Urbanek
Gabe, thanks, this was a fall-out from a power outage due to the cyclone. Although all systems were back up, svn lock files have led to an early abort in the update step. It should be fixed now. Cheers, Simon > On 27/02/2023, at 10:40 AM, Gabriel Becker wrote: > > Hi all, > > It looks like

Re: [Rd] determine if `suppressMessages()` has been invoked

2023-02-19 Thread Simon Urbanek
Nino, that is the wrong way around as Ivan pointed out. Rprintf() is not the tool for this as explained. If you want messages, use them, it's easy to wrap it to C code: static void Rmessage(const char *msg) { SEXP msg_sym = Rf_install("message"); SEXP msg_call = PROTECT(lang2(msg_sym, P

Re: [Rd] Question on non-blocking socket

2023-02-17 Thread Simon Urbanek
Ben, yes, by definition - non-blocking means that reads won't block and always return immediately (the point of non-blocking). The loop below is terrible as it will cause 100% CPU usage while it's spinning. It seems that you want to block so why are you using non-blocking mode? select() effecti

Re: [Rd] Sys.getenv(): Error in substring(x, m + 1L) : invalid multibyte string at '' if an environment variable contains \xFF

2023-01-30 Thread Simon Urbanek
message: > In strsplit(.Internal(Sys.getenv(character(), "")), "=", fixed = TRUE) : > input string 137 is invalid in this locale > > # R 4.1.0 - ... > $ BOOM=$'\xFF' LC_ALL=en_US.UTF-8 Rscript --vanilla -e "Sys.getenv()['BOOM']" > Erro

Re: [Rd] Sys.getenv(): Error in substring(x, m + 1L) : invalid multibyte string at '' if an environment variable contains \xFF

2023-01-30 Thread Simon Urbanek
Tomas, I think you're not addressing the actual issue which is a clear regression in Sys.getenv() [because it used to work and still works for single env var, but not a list] and the cryptic error due to that regression (caused by changes in R-devel). So in either case, Sys.getenv needs fixing

Re: [Rd] patch about timezone name of China Standard Time on windows

2023-01-08 Thread Simon Urbanek
> On 7/01/2023, at 1:17 PM, gong yu wrote: > > understand your concerns. > for registerTZ.c itself , IMHO , the most important part is the definition of > tztable[] . which come form > http://unicode.org/cldr/data/diff/supplemental/windows_tzid.html ,but it > can’t access now, the lasted v

Re: [Rd] patch about timezone name of China Standard Time on windows

2023-01-06 Thread Simon Urbanek
Just a quick comment here - this is not as easy as it sounds, because the code is in the "extra" directory which means it is based on upstream sources, so those sources are typically not patched manually as it would be hard to apply upstream updates. In this case the standards have changed since

Re: [Rd] Repeated segfault at installing sysdata.rda with clang/san build

2022-12-18 Thread Simon Urbanek
This crashes unceremoniously in glibc: > tools:::sysdata2LazyLoadDB("./R/sysdata.rda","../../../library/tools/R") xdrmem_create(0x7ffdf19699e0, 0x7ffdf1969ba0, 4) Program received signal SIGSEGV, Segmentation fault. 0x in ?? () (gdb) bt #0 0x in ?? () #1 0x5

Re: [Rd] I do not want that R CMD build removes temp directory

2022-12-15 Thread Simon Urbanek
Yes: $ R CMD INSTALL --help | grep error --no-clean-on-error do not remove installed package on error But probably more commonly used way is to install the package from its unpacked directory as that avoids the use of temporary directories in the first place. In you case you can als

Re: [Rd] RTools40 Error - sh: line 1: gcc: command not found

2022-11-28 Thread Simon Urbanek
Gene, I believe you have the wrong page - the link you listed is for an old version of R (4.0-4.1) - the current one (for 4.2.x) is https://cran.r-project.org/bin/windows/Rtools/rtools42/rtools.html Cheers, Simon > On 29/11/2022, at 7:39 AM, Gene Leynes wrote: > > Hello, > > I installed gi

Re: [Rd] as.Date without "origin"

2022-11-03 Thread Simon Urbanek
Dan, as.Date() and as.POSIXct() have been updated to allow replacement of the hidden functions .POSIXct() and .Date() which were the only way to correctly convert the numeric representation of the objects as Johannes explained. Given that this is a very common operation (especially with POSIXct

Re: [Rd] Lazy-evaluate elements wrapped with invisible

2022-10-30 Thread Simon Urbanek
Dipterix, I think delayedAssign() example you posted does what you want - if you don't assign the environment, it will be garbage-collected. If you fetch the value, it will be evaluated. However, I think what you meant is to have the result in one specific delayed symbol so: a <- function() {

Re: [Rd] tools:: extracting pkg dependencies from DCF

2022-10-15 Thread Simon Urbanek
Jan, I think using a single DCF as input is not very practical and would not be useful in the context you describe (creating self contained repos) since they typically concern a list of packages, but essentially splitting out the part of install.packages() which determines which files will be

Re: [Rd] Proposal to limit Internet access during package load

2022-09-26 Thread Simon Urbanek
ps it does make sense to exclude it. It would be pointless to appease the load check just to not be able to perform the function it was designed for... Cheers, Simon > On 27/09/2022, at 11:11 AM, Simon Urbanek wrote: > > > >> On 27/09/2022, at 11:02 AM, Gabriel Becker wrote

Re: [Rd] Proposal to limit Internet access during package load

2022-09-26 Thread Simon Urbanek
tter practice is > welcome. > > ~G > > On Mon, Sep 26, 2022 at 2:40 PM Simon Urbanek > wrote: > > > > On 27/09/2022, at 10:21 AM, Iñaki Ucar wrote: > > > > On Mon, 26 Sept 2022 at 23:07, Simon Urbanek > > wrote: > >> > >> Iña

Re: [Rd] Proposal to limit Internet access during package load

2022-09-26 Thread Simon Urbanek
> On 27/09/2022, at 10:21 AM, Iñaki Ucar wrote: > > On Mon, 26 Sept 2022 at 23:07, Simon Urbanek > wrote: >> >> Iñaki, >> >> I'm not sure I understand - system dependencies are an entirely different >> topic and I would argue a far more impo

Re: [Rd] Proposal to limit Internet access during package load

2022-09-26 Thread Simon Urbanek
t; On Sat, 24 Sept 2022 at 01:55, Simon Urbanek > wrote: >> >> Iñaki, >> >> I fully agree, this a very common issue since vast majority of server >> deployments I have encountered don't allow internet access. In practice this >> means that such pack

Re: [Rd] Proposal to limit Internet access during package load

2022-09-26 Thread Simon Urbanek
gagolews/stringi/blob/master/configure#L5412 > > Note it does have some sort of workaround in place for non-internet-capable > build machines, but it is external (the build in question fails without the > workaround already explicitly performed). > > Best, > ~G > > >

Re: [Rd] Proposal to limit Internet access during package load

2022-09-26 Thread Simon Urbanek
> On Sep 27, 2022, at 8:25 AM, Iñaki Ucar wrote: > > On Sat, 24 Sept 2022 at 01:55, Simon Urbanek > wrote: >> >> Iñaki, >> >> I fully agree, this a very common issue since vast majority of server >> deployments I have encountered don't al

Re: [Rd] Proposal to limit Internet access during package load

2022-09-23 Thread Simon Urbanek
Iñaki, I fully agree, this a very common issue since vast majority of server deployments I have encountered don't allow internet access. In practice this means that such packages are effectively banned. I would argue that not even (1) or (2) are really an issue, because in fact the CRAN policy

Re: [Rd] ...()

2022-08-27 Thread Simon Urbanek
Someone with historical knowledge may shed more light on whether this was ever intended in the language, but based on the current implementation I would say that this is a (perhaps convenient) side-effect of how substitute works and not an explicitly defined behavior (since there is no special h

Re: [Rd] Floating point issue

2022-07-11 Thread Simon Urbanek
I don’t think there is any guarantee that unrepresentable numbers are parsed into defined patterns, because printing is done by the OS while parsing is done by R. The way R parses decimal numbers[1] is simply by using the obvious res = res * 10 + digit and it can be easily checked that for doubl

Re: [Rd] Rgui.exe: bug associated with non-ASCII characters

2022-05-19 Thread Simon Urbanek
I think it was just a really confusing report (it took me a while to parse it), but I suspect the issue the poster tried to raise was the fact that without selection apparently submits an incomplete line if non-ASCII chars are involved. All the steps 1-5 were correct behaviour, but 6 (submittin

Re: [Rd] calloc() vs. R_Calloc()

2022-04-07 Thread Simon Urbanek
Adrian, there are many more allocations in your code - for example, you're using resize() from utils.c which uses malloc/free so it will break since it's using the wrong allocator. You may need to replace *all* allocations in your project, not just some. Cheers, Simon > On 8/04/2022, at 6:45

[Rd] String interpolation [Was: string concatenation operator (revisited)]

2021-12-07 Thread Simon Urbanek
without losing the environment etc… For more advanced > applications, a low level string interpolation expression constructor could > be provided (that could either parse a general string — at the user’s risk, > or build it directly from expressions). > > — Taras > &g

Re: [Rd] string concatenation operator (revisited)

2021-12-07 Thread Simon Urbanek
> On Dec 7, 2021, at 22:09, Taras Zakharko wrote: > > Great summary, Avi. > > String concatenation cold be trivially added to R, but it probably should not > be. You will notice that modern languages tend not to use “+” to do string > concatenation (they either have > a custom operator or

Re: [Rd] capturing multiple warnings in tryCatch()

2021-12-02 Thread Simon Urbanek
Adapted from demo(error.catching): > W=list() > withCallingHandlers(foo(), warning=function(w) { W <<- c(W, list(w)); > invokeRestart("muffleWarning") }) > str(W) List of 2 $ :List of 2 ..$ message: chr "warning 1" ..$ call : language foo() ..- attr(*, "class")= chr [1:3] "simpleWarnin

Re: [Rd] FLIBS in MacOS M1 binary at odds with documentation for optional libraries/tools

2021-11-01 Thread Simon Urbanek
Naras, thanks. It seems that the FLIBS check resolves symlinks, unfortunately (all others are fine). I would like to remind people that reports are a lot more useful *before* the release - that's why we publish RCs. Thanks, Simon > On Nov 2, 2021, at 3:03 PM, Balasubramanian Narasimhan >

Re: [Rd] parallel PSOCK connection latency is greater on Linux?

2021-11-01 Thread Simon Urbanek
in process delays the ACK to >> the first packet of the incoming result. >> >> So I'd say Nagle is hardly to blame for this. It would be interesting >> to see how many packets are generated with TCP_NODELAY on. If there >> are still 6 packets, then we are fine. If we

Re: [Rd] Is it a good choice to increase the NCONNECTION value?

2021-08-25 Thread Simon Urbanek
s=20). > > This is incredible that 64 bits computers in 2021 with gigabytes of RAM still > have similar limits, and that R, has a hard-coded limit at 128. > > > -- > > Sincerely > > André GILLIBERT > > > De : qwey...@mail.ustc.edu

Re: [Rd] [External] Re: Is it a good choice to increase the NCONNECTION value?

2021-08-24 Thread Simon Urbanek
be adjusted > at runtime. Users who want to go higher would do so at their own risk > and may need to know how to adjust the soft limit on the process. > > Best, > > luke > > On Wed, 25 Aug 2021, Simon Urbanek wrote: > >> >> Martin, >> >> I don&#x

Re: [Rd] Is it a good choice to increase the NCONNECTION value?

2021-08-24 Thread Simon Urbanek
Martin, I don't think static connection limit is sensible. Recall that connections can be anything, not just necessarily sockets or file descriptions so they are not linked to the system fd limit. For example, if you use a codec then you will need twice the number of connections than the fds.

Re: [Rd] [External] Re: Update on rtools4 and ucrt support

2021-08-23 Thread Simon Urbanek
Avi, thanks. Yes, the whole point of the developer blog posts by R-core are for uses to provide feedback, so that's great - it's odd that it required a somewhat orthogonal post to start the discussion several months later, but I'm glad we got here. Note that the point of the switch is to iro

Re: [Rd] [External] Re: Update on rtools4 and ucrt support

2021-08-23 Thread Simon Urbanek
Avi, please see the announcement: https://developer.r-project.org/Blog/public/2021/03/12/windows/utf-8-toolchain-and-cran-package-checks/index.html the documentation is in https

Re: [Rd] Force quitting a FORK cluster node on macOS and Solaris wreaks havoc

2021-08-12 Thread Simon Urbanek
Henrik, I'm not quite sure I understand the report to be honest. Just a quick comment here - using quit() in a forked child is not allowed, because the R clean-up is only intended for the master as it will be blowing away the master's state, connections, working directory, running master's ex

Re: [Rd] Double to uint64_t on M1

2021-08-11 Thread Simon Urbanek
Dipterix, this has nothing to do with R. 2^63 is too large to be represented as singed integer, so the behavior is undefined - to quote from the C99 specs (6.3.1.4): "If the value of the integral part cannot be represented by the integer type, the behavior is undefined." Your subject doesn't

Re: [Rd] attach "warning" is a message

2021-08-09 Thread Simon Urbanek
Barry, it is not a warning nor plain output, it is a message, so you can use > d = data.frame(x=1:10) > x=1 > suppressMessages(attach(d)) > Looking at the history, this used to be cat() but got changed to a message in R 3.2.0 (r65385, CCIng Martin in case he remembers the rationale for warni

Re: [Rd] On read.csv and write.csv

2021-07-01 Thread Simon Urbanek
Just for completeness, all this is well documented: CSV files: By default there is no column name for a column of row names. If ‘col.names = NA’ and ‘row.names = TRUE’ a blank column name is added, which is the convention used for CSV files to be read by spreadsheets. Note

Re: [Rd] On read.csv and write.csv

2021-06-30 Thread Simon Urbanek
Stephen, the "unhelpful" column are the row names. They are considered an important part of a data frame and therefore the default (row.names = TRUE) is to not lose them (as there is no way back once you do). If you don't want to preserve the row names you can simply set row.names=FALSE. Che

Re: [Rd] S3 weirdness

2021-06-24 Thread Simon Urbanek
Gabor, just by using zoo::read.zoo() you *do* load the namespace: > args(zoo::read.zoo) function (file, format = "", tz = "", FUN = NULL, regular = FALSE, index.column = 1, drop = TRUE, FUN2 = NULL, split = NULL, aggregate = FALSE, ..., text, read = read.table) NULL > sessionInfo() R

Re: [Rd] [External] Possible ALTREP bug

2021-06-16 Thread Simon Urbanek
The usual quote applies: "use the source, Luke": $ grep _ELT *.h | sort Rdefines.h:#define SET_ELEMENT(x, i, val) SET_VECTOR_ELT(x, i, val) Rinternals.h: The function STRING_ELT is used as an argument to arrayAssign even Rinternals.h:#define VECTOR_ELT(x,i)((SEXP *) DATAPTR(x))[i] R

Re: [Rd] Feature request – math in HTML help

2021-05-27 Thread Simon Urbanek
Just to clarify the confusion, let me rephrase that. I see this as a request to add support for converting \eqn{} and friends to MathJax in R html documentation (both in core packages as well as all contributed packages). That sounds like a reasonable request to me, but I would not volunteer t

Re: [Rd] R Console Bug?

2021-04-17 Thread Simon Urbanek
Just for completeness, This can be easily illustrated simply in R, no C code needed: cat("foo\n\rbar\n") In unix terminal: > cat("foo\n\rbar\n") foo bar In Mac-GUI: > cat("foo\n\rbar\n") bar Cheers, Simon > On Apr 17, 2021, at 20:29, Simon Urban

Re: [Rd] R Console Bug?

2021-04-17 Thread Simon Urbanek
ut > it does not seem to be printing properly. > It seems I am doing something wrong with REprintf and R_FlushConsole. > Best regards, > Morgan > > On Sat, Apr 17, 2021 at 12:36 AM Simon Urbanek > wrote: > Sorry, unable to reproduce on macOS, in R console: > > >

Re: [Rd] R Console Bug?

2021-04-16 Thread Simon Urbanek
Sorry, unable to reproduce on macOS, in R console: > dyn.load("test.so") > .Call("printtest",1e4L) Processing data chunk 1 of 3 [==] 100% Processing data chunk 2 of 3 [==] 100% Processing data chunk 3 of 3 [==

Re: [Rd] custom allocators, Valgrind and uninitialized memory

2021-04-14 Thread Simon Urbanek
le. > > Regards, > Andreas > > 2021-03-30 00:39 GMT+02:00 "Simon Urbanek" : >> Andres, >> >> correct me if I'm wrong, but the issue here is not initialisation but rather >> valgrind flagging. You simply have to call VALGRIND_MAKE_MEM_DEFINED()

Re: [Rd] custom allocators, Valgrind and uninitialized memory

2021-04-14 Thread Simon Urbanek
Andres, correct me if I'm wrong, but the issue here is not initialisation but rather valgrind flagging. You simply have to call VALGRIND_MAKE_MEM_DEFINED() in your code after allocVector3() to declare that you have initialised the memory - or am I missing something? Cheers, Simon > On 30/

Re: [Rd] boneheaded BLAS questions

2021-03-17 Thread Simon Urbanek
Ben, possibly useful project related to this https://github.com/staticfloat/libblastrampoline which is what Dirk referred to as the Julia state of art. It is actually much more complex than it sounds because of differences in naming and ABI between BLAS implementations, so simple switches don't

Re: [Rd] inheritance and attach

2021-03-15 Thread Simon Urbanek
Terry, NEWS: CHANGES IN R 4.0.0 NEW FEATURES \item S3 method lookup now by default skips the elements of the search path between the global and base environments. If you use attach(), S3 methods are hence no longer dispatched to (because it is between global and base) unless you regi

Re: [Rd] An argument promise containing bytecode?

2021-03-07 Thread Simon Urbanek
Taras, I don't think this has anything to do with promises, rather it is called Just-In-Time (JIT) compilation - see ?enablleJIT in R, it is enabled by default, so the function will be compiled on second use. Cheers, Simon > On Mar 7, 2021, at 11:12 PM, Taras Zakharko wrote: > > Dear all,

Re: [Rd] Apple M1 CRAN checks

2021-02-28 Thread Simon Urbanek
Paul, this is being worked on. As you can imagine testing over 17,000 package in a M1 Mac mini isn't quite trivial. The first priority was to get the nightly R builds to work. Second was to get CRAN package builds to work. Third is to provide checks. The first two have finished last week and th

Re: [Rd] Checking multiple inheritance of S4 objects using R's C API

2021-02-15 Thread Simon Urbanek
Emre, inherits() was designed for S3 classes and at C level only ever works for S3 classes. In S4 world you should use is(). There is no equivalent C-level API for is() so, unfortunately, you likely have to use Rf_eval() of is(x, "class"). At low-level there is R_S4_extends() which allows you

Re: [Rd] Request for a crop option on R's standard plot context menu

2021-02-12 Thread Simon Urbanek
Toby, R provides more convenient ways for this - using window devices for any output other than screen is not its intended function. I would recommend using the off-screen devices devices such as pdf() or png() to generate output which also gives you far more control. Also please note that the

Re: [Rd] Unexpected behavior with inheritance and using S3 classes as slots in S4 class

2021-01-28 Thread Simon Urbanek
Ezra, I think it's just the fact the you specified the wrong class inheritance in setOldClass() - it has to match you S3 definition, so it should be: setOldClass(c("b","a")) In which case it works: > n(s1 = b_1) An object of class "n" Slot "s1": [1] "world" attr(,"class") [1] "b" "a" Cheers,

Re: [Rd] parallel PSOCK connection latency is greater on Linux?

2020-11-03 Thread Simon Urbanek
potentially latency- or > throughput-sensitive application? > > Best, > Jeff > > On Mon, Nov 2, 2020 at 14:05, Iñaki Ucar wrote: >> On Mon, 2 Nov 2020 at 02:22, Simon Urbanek >> wrote: >>> It looks like R sockets on Linux could do with TCP_NODELAY -- without >

Re: [Rd] parallel PSOCK connection latency is greater on Linux?

2020-11-01 Thread Simon Urbanek
It looks like R sockets on Linux could do with TCP_NODELAY -- without (status quo): Unit: microseconds expr min lq mean median uq max clusterEvalQ(cl, iris) 1449.997 43991.99 43975.21 43997.1 44001.91 48027.83 neval 1000 exactly the same machine

Re: [Rd] New URL redirect checks

2020-09-16 Thread Simon Urbanek
I can't comment for CRAN, but generally, shorteners are considered security risk so regardless of the 301 handling I think flagging those is a good idea. Also I think it is particularly bad to use them in manuals because it hides the target so the user has no idea what hey will get. Cheers, Sim

Re: [Rd] CRAN metadata broken?

2020-09-15 Thread Simon Urbanek
$ ls -l stringi* -rw-r--r-- 1 pkgbuild admin 13641892 Sep 10 06:29 stringi_1.5.3.tgz so I guess there was a new version and the CRAN sync didn't finish yet when Gábor checked? Cheers, Simon [PS: please consider using CRAN or R-SIG-Mac since this is not related to R development.] > On Sep

Re: [Rd] Managing unix signal in R

2020-08-14 Thread Simon Urbanek
What do you mean by "manage unix signal"? The main signals like INT, PIPE or SEGV are handled by R and are not exposed to the user code. What exactly do you intend to do? Cheers, Simon > On Aug 14, 2020, at 6:44 PM, neonira Arinoem wrote: > > Hello > > Just wondering what is the best way to

Re: [Rd] Experimental CI tool for R

2020-07-23 Thread Simon Urbanek
Jeroen, This is great! It is definitely a good basis to build on. However, I wonder why your macOS setup is so extremely stripped down (not even Cairo, tcltk nor X11 - and not TeX, either) and as far from what we actually use as possible (using gcc instead of clang, openblas etc.). How do you

Re: [Rd] Invisible names problem

2020-07-22 Thread Simon Urbanek
Very interesting: > .Internal(inspect(k[i])) @10a4bc000 14 REALSXP g0c7 [ATT] (len=2, tl=0) 1,2,3,4,1,... ATTRIB: @7fa24f07fa58 02 LISTSXP g0c0 [REF(1)] TAG: @7fa24b803e90 01 SYMSXP g0c0 [MARK,REF(5814),LCK,gp=0x6000] "names" (has value) @10a4e4000 16 STRSXP g0c7 [REF(1)] (len=2000

Re: [Rd] Speed-up/Cache loadNamespace()

2020-07-19 Thread Simon Urbanek
Mario, On unix if you use Rseve you can pre-load all packages in the server (via eval config directive or by running Rserve::run.Rserve() from a session that has everything loaded) and all client connections will have the packages already loaded and available* immediately. You could replace Rsc

  1   2   3   4   5   6   7   8   9   10   >