similar to: unit testing for R packages?

Displaying 20 results from an estimated 6000 matches similar to: "unit testing for R packages?"

2012 Mar 02
1
seeing feedback when R CMD check pkg runs unit tests.
good day here, I'm maintaining a couple of R modules, both on r-forge. tests for these modules are written making use of unit testing, and I make use of the svUnit module, part of SciViews-R. I also make use of examples in the .Rd files. my question regards 'R CMD check pkg'. if an _example_ is not run correctly, I get clear feedback on the command line where I run 'R CMD
2009 Jan 31
1
Test Driven Development in R
Hi, I wonder what kind of interest there is on Test Driven Development (TDD) in R. Test Driven Development consists of writing the test before the function, and iteratively build the function until it passes the test. Python and Ruby (specially Ruby) have very strong test-oriented cultures. In fact, in Ruby at least the custom is to do TDD and lately Behavior-driven development (BDD). In BDD,
2011 Feb 05
1
Reading a specific file during "R CMD check"?
Hello, All: How can I obtain the location of an example data file in a package during "R CMD check"? I want to include sample raw data files in a package and have them read by a function in the package. It occurs to me to put such a file in "\inst\rawdata" and have examples find the data using something like "system.file('rawdata',
2009 Jan 15
2
R package tests
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I was wondering if anyone could point me in the right direction for reading up on writing tests in R. I'm writing some functions for inclusion into a package and would like to test them to ensure they're doing what I expect them to do. Are these approaches used for testing packages in CRAN? Cheers, Nathan - -- -
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
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
2006 Nov 15
2
Page() Function Timeout
I'm trying to use a simple page function. It starts a MeetMe conference with the devices I've listed, but the devices hang up after 3-5 seconds. After doing some research I found this was a problem, and I needed to remove a (5) from app_page.c Well, my app_page.c didn't have the (5). I did make clean; make install again just in case I had some weird compiled version installed that
2003 Jul 22
1
Samba 3B3 with LDAP
Hello, I have compiled Samba 3.0 Beta 3 and am attempting to get it to work with LDAPSAM. Whenever I run smbpasswd or pdbedit, I get the following output. sparc10:/etc/openldap# /usr/local/samba/bin/smbpasswd -a bill New SMB password: Retype new SMB password: failed to add user dn= uid=bill,ou=People with: Server is unwilling to perform referral
2011 Dec 08
0
[LLVMdev] GetElementPtr
Do you think I could use the SelectionDAGBuilder in a pass to accomplish this for me? if there is already code that does this I don't really think I should have to do this again, unless it's not possible to access that code from the stage where I want to use it? On Thu, Dec 8, 2011 at 12:56 AM, Pedro Ferreira <pedro.ferreira at imgtec.com>wrote: > I was unaware of its removal.
2006 May 25
1
compiling tests/Embedding
I am compiling the Embedding examples in the tests directory and get an undefined reference. I include the make output as well as grep'd output of nm on libR.so and compiler and arch information. Do I have an improperly built R shared library or is there a problem with the Embedding tests or something else I am not seeing? Thanks for any help! George ost 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,
2011 Dec 08
1
[LLVMdev] Fwd: GetElementPtr
---------- Forwarded message ---------- From: Ryan Taylor <ryta1203 at gmail.com> Date: Thu, Dec 8, 2011 at 11:13 AM Subject: Re: [LLVMdev] GetElementPtr To: Reid Kleckner <reid.kleckner at gmail.com> There is no support for gep, it's my understanding that it's target-independent, so there's no reason to put the lowering in the target lowering portion is there?
2006 Mar 23
4
ANN: capistrano-runit-tasks 0.2.0
I''d like to announce the second release of capistrano-runit-tasks, available from http://rubyforge.org/projects/cappy-runit/ It now supports: * File based templates * sv as the service control command in addition to runsvctrl * A much simpler interface for creating additional services. More work still needs to be done though! == TODO * Allow add_service to create more than one
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
2006 Jul 03
2
Package Unit Testing
Hello, Do we have like an official unit testing framework for packages? Like we do R CMD check, and say the scripts in <pkg>/test are executed? Or do we roll out our own outside the package? Thanks, M. Manese
2007 Apr 02
2
(Newbie)Basic Basic global vs. local variables
My R code has got too complex to have a non-modular approach. Ive done some coding in other languages before, but I somehow cant figure out R's general rules for global and local variables. I have put a simple code below, if anyone can show me what i need to add to make this work, i would greatly appreciate it! #---------------------------------------- g_Means<-numeric()
2011 Dec 08
0
[LLVMdev] GetElementPtr
Or is it in the docs such that when you use the word "independent", you really mean "independent of a particular target" and not actually "target independent"? On Thu, Dec 8, 2011 at 11:18 AM, Ryan Taylor <ryta1203 at gmail.com> wrote: > > > ---------- Forwarded message ---------- > From: Ryan Taylor <ryta1203 at gmail.com> > Date: Thu,
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
2020 Aug 07
4
Synology NAS is shutting down Ubuntu servers after very brief power outage (fwd)
On Thu, 6 Aug 2020, Todd Benivegna wrote: > ... I grep’d the syslog and here’s the results: Could you also grep for upsd and upsmon in the NAS log? Is this possible? > proton at proton:~$ sudo grep upsmon /var/log/syslog > Aug  6 19:19:09 proton upsmon[1552]: UPS ups at 192.168.1.70 on battery > Aug  6 19:19:14 proton upsmon[1552]: UPS ups at 192.168.1.70 on line
2006 Jul 17
7
Ajax Tabbed Browsing
I was wondering if anyone has done this, namely make tabbed browsing exactly like a web browser, but have it within the page. I would like to make a search function that updates a section of the page with the results, as well as makes a new tab that displays those search results. Then, if a user did 5 searches, there would be 5 tabs. Each tab would hide the other 4 results and show the