Displaying 20 results from an estimated 1000 matches similar to: "R CMD check recursive copy of tests/"
2006 Aug 05
1
R CMD check and RUnit
Hi!
I appologize for crossposting, but this might be of broader interest.
In case you are interested in fusing RUnit with R CMD check under unix
alike OS, here is one way of doing/hacking this.
My aim was to perform unit tests:
(1) during R CMD check
(2) at any other time
Say you have a package PKG in a map PKG. I use the following structure
PKG
 |- R
 |- ...
 |- inst
 |   |- doc
 |   `-
2010 Apr 22
2
RUnit bug?
There appears to be a bug in RUnit.
Given a testsuite testsuite.math, say, when I run:
runTestSuite(testsuite.math)
this works fine, provided there are no extraneous files in the
unit test subdirectory.
But if there are any Emacs temp files (with names that
end with '~') then runTestSuite gets confused and tries to
run functions from the temp files as well.
	[[alternative HTML version
2008 Mar 23
2
Can not install fCalendar package under R 2.6.2
Dear R helper:
When I was trying to install the fCalendar package, R report the 
following error and then my installation failed:
* Installing *source* package 'fCalendar' ...
** R
** inst
** preparing package for lazy loading
Loading required package: MASS
Loading required package: fEcofin
Loading required package: fUtilities
Loading required package: RUnit
  RUnit 0.4.17 loaded.
2008 Apr 07
2
tcltk issue remains
Dear R-help,
I'm trying to load the fGarch package and keep running into problems  
with tcltk:
After succesfully instaling fGarch (and dependencies) I get:
 >library(fGarch)
Loading required package: fBasics
Loading required package: fImport
Loading required package: fSeries
Loading required package: robustbase
Loading required package: fCalendar
Loading required package: MASS
Loading
2004 Aug 09
2
Approaches to using RUnit
Having used JUnit and PyUnit, I was pleased to see the release of the
RUnit package on CRAN.
I'm wondering if there are any RUnit users out there that would be
willing to share some tips on how they organize their code to work with
RUnit.
Specifically, I'm wondering about the best way to load/import/source the
functions to be tested.  I would like to end up with a script, testall
or some
2008 Mar 30
4
tests Rin and Rout
>
> Generally I find it's good to look at examples that work.  For 
> examples of packages using tests, look at source packages on CRAN.  
> Run the tests on them (using R CMD check), and see what gets produced.
>
Do you have the name of a package that use it ? I try the 10 first 
package, and 10 other at random, but none of them use tests...
>>> Create tests/myPack.R
2006 Feb 04
1
RUnit - need advice on a good directory structure or tips...
I made my own RUnit testing convention, and I want to introduce this to one
of my friends.
Before that, I'd like to review my codes.
The problem that I met when I tried to polish my codes is: How can I get the
file path in the file???
I.e., I want to get the path to the file that I'm writing using some magic R
functions. But I couldn't find any good magic.
Is there any magic?
So, I
2014 Jan 22
1
Behavior of --install-tests and testInstalledPackage
Hello,
I'm writing a script that automates the testing of reverse dependencies of a package. I found the function testInstalledPackage in the tools package, which seems to do what I want. However, when I use it for a source package that was installed with --install-tests, I've noticed that only the actual test files (e.g. located in inst/tests) are available and run. In other words the
2007 Sep 05
2
RUnit testing with R CMD check and more (was: R CMD check recursive copy of tests/)
Hello!
I have looked at Martin's recent work on "merging" unit tests with R CMD check,
fused it with my and Tony's contributions and developed it a bit further. Take
a look into the attached demo package on how it works.
In essence:
PKG/inst/RUnitTests
          |- runRUnitTests.R (script to run RUnit tests)
          \- ...             (any RUnit test file)
2008 Jun 17
1
read.spss {foreign} doesn't work over network?
I'm unable to open an SPSS file over my network.  If I copy it to my
local C:/ drive I can read it.  I saved the command (in a "crib sheet"
text file) in order to avoid all the typing, so I'm pretty sure I've
done it before.  I verified that the file I'm trying to read is OK.
This is what happens:
 
> SurveyData <-
2006 May 05
4
str() with attr(*, "names") is extremely slow for long vectors
Hi,
I noticed some time ago that, for instance, named vectors that are
really makes str() really slow when displaying the names attribute.  I
don't know exactly when this started, but it wasn't the case say 1-2
years ago.  Example (on a WinXP 1.8GHz):
> s <- 1:1000; names(s) <- s
> system.time(str(s))
 Named int [1:1000] 1 2 3 4 5 6 7 8 9 10 ...
 - attr(*, "names")=
2005 Jul 15
2
R v2.1.0 patched (>2005-05-09) for Windows?
I'm trying to troubleshoot a case where R crashes on Windows.  It does 
not occur at all with my R v2.1.0 patched (2005-05-09), but happens on R 
v2.1.1 (patched or non-patched) in many different cases.  The R 
v2.2.0dev (2005-07-15) also got this problem (although it won't crash on 
the below example).  I previously reported this 
2010 Oct 24
1
140 packages in R Commander!!
Dear List
I just downloaded and installed R 2.12.0 and then installed R Commander .
First it got RCmdr and Car, and then suggested for other packages for
utilizing the full functionality- I clicked yes!
I got 140 packages installed!!! Cran Mirror was UCLA...
Here is the list.
Is this intentional- I can see some packages like snow and multicore which
are desirable but quite optional.(see list
2007 May 14
1
Native implementation of rowMedians()
Hi,
I've got a version of rowMedians(x, na.rm=FALSE) for matrices that
handles missing values implemented in C.  It has been optimized for
memory and speed.  To avoid coercing integers to doubles, and hence
allocate an additional 200% memory, there is one C function for
integers and one for doubles.
The rowMedians() implementation is currently sitting in my non-CRAN
package R.native
2005 Dec 14
1
About help on 'mahalanobis'
Hi,
help on 'mahalanobis' (in the stats package in Rv2.2.0) now says:
"Description:
      Returns the Mahalanobis distance of all rows in 'x' and the vector
      mu='center' with respect to Sigma='cov'. This is (for vector 'x')
      defined as
                  D^2 = (x - mu)' Sigma^{-1} (x - mu)"
It does return D^2 as written.  However,
2002 Feb 20
2
How to get the penalized log likelihood from smooth.spline()?
I use smooth.spline(x, y) in package modreg and I would like to get
value of penalized log likelihood and preferable also its two parts. To
make clear what I am asking for (and make sure that I am asking for the
right thing) I clarify my problem trying to use the same notation as in
help(smooth.spline):
I want to find the natural cubic spline f(x) such that
   L(f) = \sum_{k=1}{n} w[k](y[k] -
2008 Feb 27
1
Warnings generated by log2()/log10() are really large/takes a long time to display
x <- rnorm(1e6);
y <- log(x);  # or logb(x) or log1p(x)
w <- warnings();
print(object.size(w));
## [1] 480
str(w);
 $ NaNs produced: language log(x)
 - attr(*, "dots")= list()
 - attr(*, "class")= chr "warnings"
y <- log2(x);  # or log10(x)
w <- warnings();
print(object.size(w));
## [1] 8000536
str(w);
## List of 1
##  $ NaNs produced: language
2009 Nov 11
2
typo in docs for unlink()
The VALUE section in the help for 'unlink' says:
|  0| for success, |1| for failure. Not deleting a non-existent file is 
not a failure, nor is being unable to delete a directory if |recursive = 
FALSE|. However, missing values in |x| result are regarded as failures.
The last phrase doesn't make sense to me.  Should it be either "missing 
values in x are regarded as
2009 Mar 05
1
Problem using RMySQL and fCalendar
Hello:
I am trying to use fCalendar for date arithmetic and the RMySQL package 
for accessing a MySQL database.   The fCalendar math operations seem to 
work fine UNTIL I load the RMySQL package.  Here is a demonstration:
ean at fibonacci:~/Desktop/amCharts/rsa-metrics$ R
R version 2.7.1 (2008-06-23)
Copyright (C) 2008 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
R is free
2007 Aug 20
2
library(fCalendar) timeDate("12.03.2005",format="%d.%m.%Y")
Dear R users,
I have problem with the library fCalendar.
I am not using the US standard format notations. It seems like it is not 
possible to have different format than the US standards.
Anyone how knows a way to go around this problem?
Here is the code I enter:
myDate = "12.03.2005"
timeDate(myDate, format = "%d.%m.%Y")
And I get following error message:
Error in if