Displaying 20 results from an estimated 4000 matches similar to: "Is it possible to run unit tests after a package installation?"
2011 Jun 28
2
A masked function is a masked function by any other name
Dear all,
It looks like I do not grasp the concept of masked functions enough as
to solve this trivial problem.
The code that replicates the problem (a source code tree that realizes
a R package actually) is under github so one can call it clone it
easily from the command line (though more experienced users will spot
the problem by browsing through the package code):
git clone http://jcborras at
2014 Jan 18
1
Using unit-tests as examples
Hi,
Which is the best way to use unit tests as examples for documentation?
I use testthat, but if there is a good way to do this, for example,
only with RUnit, it'd still be good to know.
Unit-tests are usually simple and concise, so they are good candidates
for example code, but I don't want to copy them into documentation and
maintain by hands. I tried to google how people handle this,
2012 May 17
2
test suites for packages
Can anyone share some opinions on test suites for R packages?
I'm looking at testthat and RUnit. Does anyone have strong opinions on
either of those.
Any additional packages I should consider?
Thanks,
Whit
2014 Jul 25
1
[Wishlist] a 'PackageDevelopment' Task View
Hello everybody,
as a young/unexperienced R package developer (only a few, mainly
for personal use) i was thinking it could be very useful having a
"meta" task view for all package-development related
packages and/or function.
Something like ...
Creation
- utils::package.skeleton, pkgKitten, Rcpp::Rcpp.package.skeleton
Foreign languages interfaces:
- Rcpp
Documentation
- roxygen2
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
2015 Apr 20
0
running unit tests on the stringr package
Dear Raju
I agree to Dirk that this is not really the best place for these matters, but
as I got curious, I checked and found you should use test_package() and not
test_dir(), as the latter does not load unexported functions of the package
(such as check_string()) that may occur in the tests.
For packaging of r-cran-stringr, it is probably most efficient to file a bug
report there because of
2010 Dec 17
0
How to use the RUnit tracker in unit tests?
R-developers
Does anybody know how I incorporate the use of the tracker in RUnit
in the unit tests?
I have read the RUnit Vignette, help pages and searched around,
but I could find no examples of using 'inspect' in the unit
test functions. Moreover, doing so, I tried something like
library(RUnit)
myFunction <- function(x) {
return(x)
}
track <- tracker()
track$init()
2015 Apr 19
4
running unit tests on the stringr package
I am trying to learn how to run the unit tests in the stringr package
and have the following questions.
1) The r-cran-stringr package does not suggest/depend on the
r-cran-testthat package . Would it make sense to add such a thing
since after all the tests in /usr/lib/R/site-library/stringr/tests
rely on testthat package?
2) I am getting the following error when trying to run the unit tests
%
2011 Apr 04
1
svd
Dear list,
I searched the libraries but could not find means to compute the
svd of a coupled field. Is it possible in R
Thanks
nuncio
--
Nuncio.M
Research Scientist
National Center for Antarctic and Ocean research
Head land Sada
Vasco da Gamma
Goa-403804
[[alternative HTML version deleted]]
2011 Jun 08
1
The simplest bar graph with ggplot is difficult to realize
Dear all,
What is the simplest way of producing a bar graph using ggplot but
avoiding calling qplot?
That is, given:
d <- data.frame(x=seq(1,5), y=seq(1,5))
Why does the following line return an error?
ggplot(d, aes(x=x, y=y)) + stat_identity() + geom_bar(bindwidth=1)
Thanks in advance,
jcb!
2018 Jul 17
2
Samba 4.8.3 out of memory error
Our domain controllers have run samba 4.4.3 since it was released. We
didn't upgrade because it was so stable :)
I recently decided that release was too old and upgraded to 4.8.2
(then current). Our domain controllers were crashing on 4.8.2 so I
upgraded to 4.8.3 as soon as it was released but this has not resolved
the issue.
When the issue occurs the DC becomes unresponsive and needs to be
2009 Oct 05
3
unit testing for R packages?
Hi All,
I'm interested in putting some unit tests into an R package I'm
building. I have seen assorted things such as Runit library, svUnit
library, packages
with 'tests' directories, etc
I grep'd "unit test" through the writing R extensions manual but didn't find
anything. Are there any suggestions out there? Currently I have
several (a lot?) classes/methods
2007 May 09
4
Unit Testing Frameworks: summary and brief discussion
Greetings -
I'm finally finished review, here's what I heard:
============ from Tobias Verbeke:
anthony.rossini@novartis.com wrote:
> Greetings!
>
> After a quick look at current programming tools, especially with regards
> to unit-testing frameworks, I've started looking at both "butler" and
> "RUnit". I would be grateful to receieve real
2007 Jan 31
1
Fw: error after installation
----- Original Message -----
From: "jepoy" <jcb at dream.com.ph>
To: <lrosa at hypertrek.info>
Sent: Wednesday, January 31, 2007 1:43 PM
Subject: Re: [Dovecot] error after installation
>
> ----- Original Message -----
> From: "Luigi Rosa" <lrosa at hypertrek.info>
> To: "Dovecot Mailing List" <dovecot at dovecot.org>
> Sent:
2017 Sep 17
2
R-devel r73293 and the testthat package
Hello,
Windows R-devel no longer lets me use testthat even though the CRAN checks are pretty much clean. I have copied my session output below.
Will
R Under development (unstable) (2017-09-16 r73293) -- "Unsuffered Consequences"
Copyright (C) 2017 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)
R is free software and comes with ABSOLUTELY NO
2006 Mar 18
2
ANN: capistrano-runit-tasks 0.1.0
I''d like to announce the first release of capistrano-runit-tasks.
This came about as I wanted to use runit rather than spinner/spawner/
reaper on my memory limited VPS but should be useable for any setup.
From the README:
This library extends Capistrano to allow processes to be supervised
using the
runit package. It replaces some of the standard tasks with runit
versions and
2007 Jan 14
2
merging two lists but get indexes
Suppose I have two columns of entries, how can I get the union of the
two columns? Please note: I input my columns through excel. These
entries have text format in excel. Also, out of curiosity, how can I
find out the data type of a data frame ?
> a <- read.csv("book1.csv")
> a
n1 n2
1 apple soda
2 orange apple
3 soda green
4 red yellow
5 white blue
6
2023 Jan 11
2
rhub vs. CRAN fedora-*-devel, using armadillo & slapack
On 11/01/2023 12:35 p.m., RICHET Yann wrote:
> Thank you all, for these advices.
>
> So I try to fix OMP_THREADS, cleanup tests, and display explicitly what test is running by moving in tests/ instead of tests/testthat/...
> Next step should be to investigate blocking test using a reporter (maybe "list").
> For now, waiting for CRAN results...
I think Sebastian or my
2023 Jan 10
1
rhub vs. CRAN fedora-*-devel, using armadillo & slapack
On 10/01/2023 4:07 p.m., Sebastian Meyer wrote:
> Am 10.01.23 um 21:28 schrieb Duncan Murdoch:
>> On 10/01/2023 2:05 p.m., Ivan Krylov wrote:
>>> On Tue, 10 Jan 2023 16:27:53 +0000
>>> RICHET Yann <yann.richet at irsn.fr> wrote:
>>>
>>>> In facts, 10 threads are asked by armadillo for some LinAlg, which
>>>> backs to two threads as
2023 Jan 11
2
rhub vs. CRAN fedora-*-devel, using armadillo & slapack
Thank you all, for these advices.
So I try to fix OMP_THREADS, cleanup tests, and display explicitly what test is running by moving in tests/ instead of tests/testthat/...
Next step should be to investigate blocking test using a reporter (maybe "list").
For now, waiting for CRAN results...
Yann
-----Message d'origine-----
De?: Duncan Murdoch <murdoch.duncan at gmail.com>