Re: [Rd] R-devel Digest, Vol 112, Issue 8

2012-06-09 Thread John C Nash
I'll not be able to comment on the use of C like this, but will warn that I wrote the routines that became Nelder-Mead, CG, and BFGS in optim() in the mid 1970s. CG never did as well as I would like, but the other two routines turned out pretty well. However, in nearly 40 years, there are a few

[Rd] -lgsl -lgslcblas fatal error no such file or directory

2012-06-09 Thread kevinpw
Hello, Novice programmer. I'm writing C source code and compiling it in as *.dll in the terminal by R CMD SHLIB foo.c. It works, I'm on a 64 bits windows system. I have the lastest R 2.15.0 and Rtools using the gcc 4.6.3 compiler. However, that was a hello world run, and I installed GSL for the

[Rd] Convert "\" to "/"?

2012-06-09 Thread Spencer Graves
Hello, All: I have for years copied an address like "C:\Program Files\R\R-2.15.0\library\MASS\scripts" from Windows Explorer into R, then manually replaced "\" with "/". I have a function to automate this added to the development version of "sos". However, it generates a warning in "R C

Re: [Rd] Convert "\" to "/"?

2012-06-09 Thread G See
One work around is to comment out the lines that `scan` reads. (x <- back2ForwardSlash()) #c:\Users\ all.equal(x, '#c:/Users/') Or, you could pass a text arg through the dots (x <- back2ForwardSlash(text="c:\\\users")) all.equal(x, 'c:/users') HTH, Garrett On Sat, Jun 9, 20