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
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
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
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