Displaying 20 results from an estimated 7000 matches similar to: "identical(0, -0)"
2010 Nov 16
4
DBLEPR?
Ravi Varadhan and I have been looking at UCMINF to try to identify why it gives occasional
(but not reproducible) errors, seemingly on Windows only. There is some suspicion that its
use of DBLEPR for finessing the Fortran WRITE() statements may be to blame. While I can
find DBLEPR in Venables and Ripley, it doesn't get much mention after about 2000 in the
archives, though it is in the R FAQ
2010 Nov 16
4
DBLEPR?
Ravi Varadhan and I have been looking at UCMINF to try to identify why it gives occasional
(but not reproducible) errors, seemingly on Windows only. There is some suspicion that its
use of DBLEPR for finessing the Fortran WRITE() statements may be to blame. While I can
find DBLEPR in Venables and Ripley, it doesn't get much mention after about 2000 in the
archives, though it is in the R FAQ
2009 Jul 30
3
R User Group listings
There are now several R geographic user groups, and a few have mailing
lists on the R mailing list system. Thanks to Martin M, there's also a
pointer to a page I'm maintaining to list/describe the groups. The page
is at
http://macnash.telfer.uottawa.ca/RUG.html
Contact me if you have a listing. I'm prepared to wikify it if there is
sufficient interest.
John Nash
2015 Apr 25
2
Title case in DESCRIPTION for package where a word is a function namei
> On 25 Apr 2015, at 13:11 , Prof J C Nash (U30A) <nashjc at uottawa.ca> wrote:
>
> Hendrik pointed out it was the parentheses that gave the complaint.
> Single quotes and no parentheses seem to satisfy R CMD check. Perhaps
> that needs to be in the WRE.
Well, it is in ?toTitleCase:
...However, unknown
technical terms will be capitalized unless they are single
2015 Apr 24
3
Title case in DESCRIPTION for package where a word is a function name
On 24.04.2015 22:44, Ben Bolker wrote:
> Prof J C Nash (U30A <nashjc <at> uottawa.ca> writes:
>
>>
>> I was preparing a fix for a minor glitch in my optimx package and R CMD
>> check gave an error that the title was not in title case.
>
> [snip] to make Gmane happy ...
>
>> I have found
>>
>> A Replacement and Extension of the
2010 Nov 30
5
Minor warning about seq
I spent more time than I should have debugging a script because I wanted
x<-seq(0,100)*0.1
but typed
x<-seq(O:100)*0.1
seq(0:100) yields 1 to 101,
Clearly my own brain to fingers fumble, but possibly one others may want to avoid it.
JN
2015 Apr 24
2
Title case in DESCRIPTION for package where a word is a function name
I was preparing a fix for a minor glitch in my optimx package and R CMD
check gave an error that the title was not in title case. It is
A Replacement and Extension of the optim() Function
R CMD check suggests the incorrect form
A Replacement and Extension of the Optim() Function
'Writing R Extensions' suggests single quotes, i.e.,
A Replacement and Extension of the 'optim()'
2012 Apr 28
2
Character string to R object
I've been creating some R tools that manipulate objective functions for optimization. In
so doing, I create a character string with R code, and then want to have it in my
workspace. Currently -- and this works fine -- I write the code out, then use source() to
bring it in again. Example:
cstr<-"jack<-function(x){\n cat(\"Silly x:\")\n print(x) \n }\n"
write(cstr,
2012 Mar 26
1
Seeming failure of options(width=60)
The following example gives output with a line length of 103 on my system. It is causing a
nuisance in creating a vignette. Is there something other than e.g., options(width=60) I
need to set? The Sweave FAQ suggests this should work.
options(width=60)
pastured <- data.frame(
time=c(9, 14, 21, 28, 42, 57, 63, 70, 79),
yield= c(8.93, 10.8, 18.59, 22.33, 39.35,
56.11, 61.73, 64.62,
2012 Mar 01
3
Converting a string vector with names to a numeric vector with names
Not paying close attention to detail, I entered the equivalent of
pstr<-c("b1=200", "b2=50", "b3=0.3")
when what I wanted was
pnum<-c(b1=200, b2=50, b3=0.3)
There was a list thread in 2010 that shows how to deal with un-named vectors, but the same
lapply solution doesn't seem to work here i.e.,
pnum<-lapply(pstr, as.numeric)
or similar vapply
2009 Sep 10
1
Non-GPL packages for R
Subject: Non-GPL packages for R
Packages that are not licensed in a way that permits re-distribution on
CRAN are frequently a source of comment and concern on R-help and other
lists. A good example of this problem is the Rdonlp2 package that has
caused a lot of annoyance for a number of optimization users in R. They
are also an issue for efforts like Dirk Eddelbuettel's cran2deb.
There
2009 Jun 26
1
Determining if swap memory is turned off
In order to run some performance tests on optimization tools, I want to
be able
to avoid the use of swap memory. In *nix systems, at least Linux ones, I
can issue
a 'sudo swapoff -a' command and use just the RAM available. If I don't
do this, at
some point swap will be used, the disk goes ballistic and the machine is
unresponsive
because it is thrashing data to the swap. I
2009 Oct 22
2
Advice on how to arrange fix of buglet
Recently I reported a small bug in optim's SANN method failing to report
that it had exceeded the maximum function evaluation limit in the
convergence code. This is a small enough matter that I was reluctant to
create a full-blown bug report. Indeed in the optimx package Ravi
Varadhan and I have been developing on r-forge (under the OptimizeR
project) it was a minimal work around to fix
2011 Aug 17
2
An example of very slow computation
This message is about a curious difference in timing between two ways of computing the
same function. One uses expm, so is expected to be a bit slower, but "a bit" turned out to
be a factor of >1000. The code is below. We would be grateful if anyone can point out any
egregious bad practice in our code, or enlighten us on why one approach is so much slower
than the other. The problem
2023 Mar 31
1
Query: Could documentation include modernized references?
>>>>> Duncan Murdoch
>>>>> on Sun, 26 Mar 2023 12:41:03 -0400 writes:
> On 26/03/2023 11:54 a.m., J C Nash wrote:
>> A tangential email discussion with Simon U. has
>> highlighted a long-standing matter that some tools in the
>> base R distribution are outdated, but that so many
>> examples and other tools may use
2011 Nov 30
3
Upgrading R on my EEE PC netbook
I have been successfully been using R on my EEE PC for some while
now. Although it uses Xandros I have been able to install various
pieces of software by pretending that it was Debian etch. Johannes
was kind enough to continue providing binaries on CRAN for a while
but I think I am the only person still living in the past as CRAN
etch is currently stuck at 2.11.0 and I cannot rely on him to
2009 Feb 06
1
Use of cfortran.h?
I'm planning to try to use Mike Powell's new BOBYQA optimization routine
to see if it is a good candidate to eventually replace Nelder-Mead as the
optim() default. (Don't panic -- this won't happen quickly.) Mike writes
f77 code. After some chasing about, I've realized that because
optimization codes need to call the objective function written in R, they
need to use a language
2012 Mar 18
1
Converting expression to a function
Previously, I've posted queries about this, and thanks to postings and messages in
response have recently had some success, to the extent that there is now a package called
nlmrt on the R-forge project https://r-forge.r-project.org/R/?group_id=395 for solving
nonlinear least squares problems that include small or zero residual problems via a
Marquardt method using a call that mirrors the nls()
2009 Sep 14
2
Escaping . in regular expression
If I run
cvec<-c("test.f", "test.sf", "try.g","try.res", "try.f")
print(cvec)
indx<-grep('\.f',cvec,perl=TRUE)
fset<-cvec[indx]
print(fset)
I get
> cvec<-c("test.f", "test.sf", "try.g","try.res", "try.f")
> print(cvec)
[1] "test.f" "test.sf"
2009 Jan 27
2
optim() and ARIMA
dhabby wrote:
Last week I run in to a lot a problems triyng to fit an ARIMA model to a
time series. The problem is that the internal process of the arima
function
call function "optim" to estimate the model parameters, so far so good...
but my data presents a problem with the default method "BFGS" of the
optim
function, the output error looks like this: