Displaying 20 results from an estimated 5000 matches similar to: "return(); was Suggestions for "good teaching" packages"
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
2015 Apr 25
0
Title case in DESCRIPTION for package where a word is a function namei
How about allowing underscore? (I believe WRE is silent on this, and I
have not tried submitting a package with underscore in the title.) As I
pointed out in my OP, _optim()_ works. And we have the advantage that we
can distinguish package from function.
The purpose of consistent editing is surely to provide the affordances
that save us from needing extra documentation, as per Donald Norman's
2010 Apr 13
0
Multicore mapply
Quick question regarding multicore versions of mapply. Package 'multicore'
provides a parallelized version of 'lapply', called 'mclapply'. I haven't
found any parallelized versions of 'mapply', however (although one can use
the lower level function 'parallel', it becomes harder to control the number
of spawned processes etc).
Is anyone aware of a
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
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,
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 Jan 08
0
Design changes are done in Fedora
On Jan 7, 2015, at 7:02 AM, Les Mikesell <lesmikesell at gmail.com> wrote:
> There's still a very odd mix of art and science involved.
Yes. This is part of what I was getting at with my definition of ?technology.? Once a thing becomes reliable, it stops being technology. It?s been reduced to the point Mr. Always Learning wants, something that merely serves as a tool to improve
2009 May 01
1
nlminb - Port library codes
Having looked at documentation and codes, I'm still looking to find out
who did the installation of the Port libraries. As I work on
optimization code improvements, there are often choices of settings
(tolerances etc.), and I'd prefer to learn if there are particular
reasons for choices before diving in and making any adjustments.
It is also worth giving credit where it is due. Given
2011 Jun 26
1
Default values in control list of function
In building a function for a package, I'd like to set the defaults in a control list,
e.g.,
makeg<-function(parameters, eps = 1.0e-7, control=list(showwork=TRUE, rubbish=1.0e+101)){
etc.
}
This does not provide showwork or rubbish within the function if control() is not fully
specified. Copying others, I've previously set the control defaults within the function
then matched
2015 Apr 25
0
Title case in DESCRIPTION for package where a word is a function name
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.
However, I have for some time used the parentheses to distinguish
functions from packages. optim() is a function, optimx a package.
Is this something CRAN should be thinking about? I would argue greater
benefit to users than title
2009 Jan 03
1
runif (and other generator) "precision" / man pages
I'm inclined to agree with the view that the "precision" of a generator
should be highlighted better in the manual pages. When I do
?runif
I don't see a mention, but ?.Random.seed DOES give the info, as Duncan
points out, and it is suggested to look there.
A 1-liner with each random number generator
"CAUTION: random number generators use different mechanisms and
2011 Jan 17
0
[Fwd: Re: R-help Digest, Vol 95, Issue 17]
Apologies if this is posted twice. The r-help mailing system gave an error
(reported to moderator) on first try, but it may have gone through.
---------------------------- Original Message ----------------------------
Subject: Re: R-help Digest, Vol 95, Issue 17
From: "Prof. John C Nash" <nashjc at uottawa.ca>
Date: Mon, 17 January, 2011 1:04 pm
To: r-help at
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
2011 Feb 22
1
odfWeave graphics glitch
Using R2.12.1 on Ubuntu 10.04.1 I've tried to run the following code chunk in odfWeave
<<fig1, echo=TRUE,fig=TRUE,width=7,height=4>>=
x<-seq(1:100)/10
y<-sin(cos(x/pi))
imageDefs <- getImageDefs()
imageDefs$dispWidth <- 4.5
imageDefs$dispHeight<- 4.5
setImageDefs(imageDefs)
X11(type="cairo")
plot(x,y)
title(main="sin(cos(x/pi))")
2014 Jun 02
1
R CMD check for the R code from vignettes -- thread fraying?
I noted Duncan's comment that an answer had been provided, and went to
the archives to find his earlier comment, which I am fairly sure I saw a
day or two ago. However, neither May nor June archives show Duncan in
the thread except for the msg below (edited for space). Possibly tech
failures are causing misunderstandings.
JN
On 14-06-02 06:00 AM, r-devel-request at r-project.org wrote:
>
2009 Jan 04
1
R/octave/matlab etc.
I'd echo a lot of what has been said about this by the folk who have
been making R work so well. One of the main difficulties is that the
environment of computations affects relative performance. e.g., what
settings did a distro package builder choose. I note that my 3 GHz Dual
Core machine running Ubuntu 8.04 gets
octave 3.0.0
octave:6> tic; a = a + 1; toc
Elapsed time is 0.120027
2011 Feb 15
6
Request: Suggestions for "good teaching" packages, esp. with C code
Hello,
I am looking for CRAN packages that don't teach bad habits. Can I
have suggestions?
I don't mean the recommended packages that come with R, I mean the
contributed ones. I've been sampling a lot of examples and am
surprised that many ignore seemingly agreed-upon principles of R
coding. In r-devel, almost everyone seems to support the "functional
programming" theme
2011 Sep 10
1
control list gotcha
This is mainly a reminder to others developing R packages to be careful not to supply
control list items that are not used by the called package. Optimx is a wrapper package
that aims to provide a common syntax to a number of existing optimization packages.
Recently in extending optimx package I inadvertently introduced a new control for optimx
which is NOT in any of the wrapped optimization