[Rd] Unable to load Windows NETIO.SYS and WINSPOOL.DRV DLLs

2023-02-11 Thread David Sterratt
.logical(now), ...) : unable to load shared object 'C:/Users/David Sterratt/AppData/Local/R/win-library/4.3/RGtk2/libs/x 64/RGtk2.dll': LoadLibrary failure: The specified module could not be found. WinDbg output reveals errors loading "NETIO.SYS" and "WINSPOOL

[Rd] Replacements for stdout and stderr guaranteed to be open in all versions of R

2012-05-11 Thread David Sterratt
I maintain the geometry package, which integrates the Qhull C library (http://qhull.org) into R. The Qhull function I hook into requires an open FILE handle as one of its arguments. I had set this file handle to stdout, but now R check NOTEs the presence of stdout, and the CRAN maintainers asked me

Re: [Rd] Replacements for stdout and stderr guaranteed to be open in all versions of R

2012-05-12 Thread David Sterratt
On Fri, 2012-05-11 at 18:36 -0400, Duncan Murdoch wrote: > On 12-05-11 5:36 PM, David Sterratt wrote: > > Looking at > > http://svn.r-project.org/R/trunk/src/gnuwin32/system.c > > it would appear that R_Consolefile and R_Outputfile only point to open > > files when Cha

[Rd] Catching errors from solve() with near-singular matrices

2012-12-11 Thread David Sterratt
Dear all, The background is that I'm trying to fix this bug in the geometry package: https://r-forge.r-project.org/tracker/index.php?func=detail&aid=1993&group_id=1149&atid=4552 Boiled down, the problem is that there exists at least one matrix X for which det(X) != 0 and for which solve(X) fails

Re: [Rd] Catching errors from solve() with near-singular matrices

2012-12-12 Thread David Sterratt
Dear all, many thanks to Jon & Ravi for their help on this, and apologies if r-help would have been a more appropriate forum. On Tue, 2012-12-11 at 15:43 +, Jon Clayden wrote: > Strategy 1: Some code like this: >if (det(X) < epsilon) { > warning("Near singular