Displaying 20 results from an estimated 500 matches similar to: "(Newbie)Basic Basic global vs. local variables"
2007 Apr 01
2
Reading user input
Hi there, this is a very easy question, i just cant seem to find a straight
answer- i need this one thing, then i can finish my project for this term.
I am making an interactive application with R where I get the user to input
numbers that the program then uses in the analysis. I have figured out a
lot of stuff, yet this is somehow hard to find the answer to:
2011 Jul 13
1
Error non-numeric argument to binary operator
Dear all,
I have a data frame df and i am using a code shown below.
df[, "total"] <- rowSums(df[, 3:6]) MAKING A NEW COLUMN total in df BY ROWSUMS
defineSamples<- function()
{
readline("enter the number of INDIVIDUALS IN POOL: ")
}
df$ind=definesamples() CALLING THE FUNCTION AND STORING THE INPUT FROM USER IN NEW COLUMN OF df
df[, 3:6] <-
2007 Apr 04
2
Newbie: Simple loops: complex troubles
I am used to java (well, i dont remember it really well, but anyway)
I have having a really difficult time making simple loops to work. I got the
following to work:
##
##Creates objects Ux1, Ux2, Ux2 etc. that all contain n numbers in a
random distribution
##
m<-c(m1,m2,m3,m4,m5,m6,m7,m8,m9,m10)#these are defined as numbers (means)
v<-c(v1,v2,v3,v4,v5,v6,v7,v8,v9,v10)#these
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
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
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
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 Aug 10
10
what is the correct way to stop/start a mongrel instance using monit with mongrel cluster
Hi --
I have been reading documentation and googling around to find the
correct way to do this but I have found many ways that seem to not
work, or the documentation makes no reference to.
I am using mongrel cluster with 10 mongrels for each server. Recently
I installed monit but which lead me to find the correct way to
start/stop mongrel instances one pid at a time. I am assuming one pid
at a
2015 Jul 01
4
dovecot-lmtp
Hi, I'm trying to use dovecot-lmtp so that I can filter messages with
sieve, however it doesn't appear to be working.
I followed the instructions on wiki2.dovecot.org. I'm running Debian
Wheezy. I've got runit configured to execute postfix and dovecot, which
may be the source of the problem (runit executes /usr/sbin/dovecot -F).
I've got mail_debug turned on and there is
2013 Jan 14
1
Issue with getParserData in R3.0.0
Hello,
I am migrating my package lambda.r to R3.0.0 and am experiencing some issues with the getParserData function (which replaces the parser package). Basically the function works in the R shell but fails when either called from RUnit or from R CMD check.
I've narrowed it down to the function getSrcfile, which is returning different values depending on the code path. From the command line
2004 Oct 05
1
R 2.0.0: problem: installing --with-package-versions
Hello R developers,
installing R 2.0.0 from source on a Linux Debian system (gcc 3.2.2)
- which worked just fine - I encountered the following problem when trying to
update/install packages with the option --with-package-versions:
example: RUnit 0.4.0 (also on CRAN)
R20 CMD INSTALL -l /mnt/local/R/R-2.0.x-libs-EpiR --with-package-versions
RUnit_0.4.0.tar.gz
or after untaring
R20 CMD INSTALL
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)
2013 May 20
2
Unicorn + RUnit Rails Not Killing Old Master
Hi,
I''m deploying Unicorn on a Rails application with RUnit. Technically
I''m using Chef''s deployment tools, if any of you are familiar with it
(https://github.com/opscode-cookbooks/application_ruby) but to be clear
they aren''t doing anything magical, so this is purely an issue with
RUnit and Unicorn.
The TL;DR of the following post, which has lots of
2009 Jul 10
1
RUnit detects parse error, but why?
Folks,
An RUnit test suite is failing after all tests are complete with the
following message:
Error in parse(n = -1, file = file) : unexpected '}' at
620:
621: }
All individual tests work when run individually, and all but one run
within the RUnit test suite. What might be causing this?
A similar error message during package creation was discussed earlier
2007 Aug 29
1
R CMD check recursive copy of tests/
>From NEWS of R v2.6.0 devel:
o R CMD check now does a recursive copy on the 'tests' directory.
However, R CMD check does not run *.R scripts in such subdirectories
(as I thought/hoped for), only those directly under tests/, This may
or may not be intentional. If true, maybe the above should be
clarified as:
o R CMD check now does a recursive copy on the 'tests' directory
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
| `-
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
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.
2016 Mar 06
6
Ubuntu packages
> On March 4, 2016 at 10:38 PM Stephan Bosch <stephan at rename-it.nl> wrote:
>
>
> Op 3/4/2016 om 9:18 PM schreef Peter Chiochetti:
> > Am 2016-03-04 um 21:03 schrieb Stephan Bosch:
> >> Op 3/4/2016 om 7:15 PM schreef Peter Chiochetti:
> >>> Since dovecot put up packages on their own repo, bigmichi stopped
> >>> providing his'. I