[Rd] validspamobject?

2018-08-14 Thread Ronald Barry
Greetings,
  My R package has been showing warnings of the form:

`validspamobject()` is deprecated. Use `validate_spam()` directly

None of my code uses the function validspamobject, so it must be a problem
in another package I'm calling, possibly spam or spdep.  Has this problem
occurred with other people?  It doesn't have any deleterious effect, but
it's annoying.  In particular, how do I determine which package is causing
this warning?  Thanks.

Ron B.

[[alternative HTML version deleted]]

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] Thanks for help with validspamobject

2018-08-16 Thread Ronald Barry
Hi,
  Thanks for all your help.  The problem with an error involving
validspamobject() has been resolved, as a new version of spdep (0.7-7) was
just released and it seems to have stopped using the deprecated function.

Ron B.

[[alternative HTML version deleted]]

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] validspamobject?

2018-08-18 Thread Ronald Barry
Hi,
  I have submitted an updated R package to CRAN, the only problem seems to
be the examples take too long to run on Windows and Debian.  Several
examples take over 10 seconds and the entire set takes around 110 seconds.
However, I don't see what the 'target' amount of time is.  How much will
this need to be sped up to pass the test?  Also, are there some tricks to
speeding up examples that you have seen?  For instance, is it possible to
have the identical example in two help files but only have them run once
(other than the obvious, which is putting a 'do not run' on one of them,
which would seem to invite possible bad code)?  Thanks for any information.

Ron Barry

On Tue, Aug 14, 2018 at 4:56 PM, Ronald Barry  wrote:

> Greetings,
>   My R package has been showing warnings of the form:
>
> `validspamobject()` is deprecated. Use `validate_spam()` directly
>
> None of my code uses the function validspamobject, so it must be a problem
> in another package I'm calling, possibly spam or spdep.  Has this problem
> occurred with other people?  It doesn't have any deleterious effect, but
> it's annoying.  In particular, how do I determine which package is causing
> this warning?  Thanks.
>
> Ron B.
>

[[alternative HTML version deleted]]

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] Thanks for help with validspamobject

2018-08-26 Thread Ronald Barry
I'm curious about a warning coming from the use of package sqldf.  I opened
a file and read it using a SQLite select statement:

f = "/Users/ronaldbarry/Desktop/Three-Dee/LakeMichDepth.txt"
> sql_statement = "select long,lat,depth,(lat - 41.62) as templat, (long +
> 88) as templong
> from file
> where (abs(templat - 0.1*round(templat/0.1,0)) < 0.01)and(abs(templong -
> 0.15*round(templong/0.15,0)) < 0.01)"
> Mich_depth = sqldf::read.csv.sql(file=f,sql =
> sql_statement,header=TRUE,sep=' ')


Which ran perfectly well, but it threw a warning:

Warning messages:
1: In stopifnot(is.list(hooks)) :
  closing unused connection 6
(/Users/ronaldbarry/Desktop/Three-Dee/LakeMichDepth.txt)
2: In stopifnot(is.list(hooks)) :
  closing unused connection 5
(/Users/ronaldbarry/Desktop/Three-Dee/LakeMichDepth.txt)

It looks like it would be good practice to close the connection in code,
but I don't see any function in sqldf

to do so.  Is there a way to nicely close the connection, or should I just
ignore the warning?  Operating

system is Mac OSX 13.16 High Sierra, R Studio version 1.1.146, R version
3.5.0.  Thanks for any info.

On Thu, Aug 16, 2018 at 12:00 PM, Ronald Barry  wrote:

> Hi,
>   Thanks for all your help.  The problem with an error involving
> validspamobject() has been resolved, as a new version of spdep (0.7-7) was
> just released and it seems to have stopped using the deprecated function.
>
> Ron B.
>

[[alternative HTML version deleted]]

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] .Rdata file in data subdirectory won't load

2010-11-28 Thread Ronald Barry
Greetings,
  I wanted to add a dataset to a complete R package I am working on
(the package cleanly installs and passes the R CMD check).
The data (a matrix) was saved, and the save() image dragged to the
/data folder, and is a .Rdata file.  It can be read directly using
load (see below), but now the R CMD check indicates "subdirectory data
contains no datasets" and it won't load using 'data()'.  I have read
through the R extensions manual and Leisch's tutorial, but can't find
a good hint as to what is going wrong.  I also tried this with
'polygon1'
added to the 'export' in the NAMESPACE, with no effect.

> library(latticeDensity)
> data(polygon1)
Warning message:
In data(polygon1) : data set 'polygon1' not found
> file.choose()
[1] "C:\\Documents and Settings\\Ronald Barry\\My
Documents\\latticeDensity\\data\\polygon1.Rdata"
> load( "C:\\Documents and Settings\\Ronald Barry\\My 
> Documents\\latticeDensity\\data\\polygon1.Rdata")
> polygon1
   [,1]  [,2]
 [1,] 0.6421053 0.8132050
 [2,] 0.6845247 0.4814305
 [3,] 0.7057345 0.2858322
 [4,] 0.6696779 0.2066025
 [5,] 0.5190888 0.1892710
 [6,] 0.5445405 0.4145805
 [7,] 0.5424195 0.6275103
 [8,] 0.5233307 0.7983494
 [9,] 0.500 0.7983494
[10,] 0.5127258 0.5458047
[11,] 0.5042419 0.3303989
[12,] 0.4851532 0.1348006
[13,] 0.2836606 0.1843191
[14,] 0.2582090 0.3675378
[15,] 0.1733700 0.6795048
[16,] 0.3154753 0.8057772
[17,] 0.2391202 1.0162311
[18,] 0.5381775 0.9592847
[19,] 0.7333071 0.9320495
>


Thank you for any pointers.

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] Demo and 00Index problems

2011-02-19 Thread Ronald Barry
Greetings,
  I am sure I'm missing the obvious, but my 00Index file in the demo
subdirectory is not recognized by R CMD check (the demo runs fine, but
I get a WARNING from R CMD check about a lack of demo/00Index file.
When I invoke demo()  in R I see the name but not description of the
demo).  Is there documentation (other than 'Writing R extensions') on
putting together the demo subdirectory?  Thanks.

Ron Barry

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] Comment on build and INSTALL

2011-05-31 Thread Ronald Barry
Greetings,
  I have noticed two possible small glitches with build and INSTALL.
First, when I run R CMD build latticeDensity, I get the following message:

 *excluding invalid files from 'latticeDensity'
 Subdirectory R contains invalid file names:
  R

However, all the files end up in the zip file (or tar) just fine, and
neither INSTALL nor check seems to care.

The other small glitch is that if you have unmatched brackets in a man file,

INSTALL will flag an error and point out that there are unmatched brackets,
but will often indicate that the unmatched bracket occurs in  a different
file
that is in perfect shape.

Ron Barry

-- 
Please note that the ff...@uaf.edu e-mail address will stop working fairly
soon, so you should start using the new address rpbarry AT alaska.edu

[[alternative HTML version deleted]]

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] What to do re 'replacing previous import' errors

2017-05-20 Thread Ronald Barry
After looking at a few discussions of this problem online, I can't seem to
find a good solution.  When running a CHECK on a package I'm working on
(which passed all tests a few years ago), I get the following 'significant
warning':

Warning: replacing previous import ‘spam::tail’ by ‘utils::tail’ when
loading ‘latticeDensity’
  Warning: replacing previous import ‘spam::head’ by ‘utils::head’ when
loading ‘latticeDensity’

Humorously enough, I don't use the 'tail' function anywhere.  It seems to
be some sort of namespace clash between spam and utils.  In my namespace,
I'm importing spam and utils.  Is there a fix for this problem?  Thanks.

[[alternative HTML version deleted]]

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] Style question

2014-05-28 Thread Ronald Barry
Greetings,
  When using a 'foreign' function (from another package, say function
'whatever' from package 'foo'), you can of course just require the package
and then just have

whatever(...)

in your code.  However, I would like to use the

foo::whatever(...)

form instead, just for documentation purposes (easier to see what function
comes from what package).  Is there a cost to doing this?  Is it considered
good or bad style?  Thanks.

Ron Barry

[[alternative HTML version deleted]]

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel