search for: rtest

Displaying 20 results from an estimated 117 matches for "rtest".

Did you mean: test
2005 Oct 30
1
attaching the debugger to functional test.
...BikleTest < Test::Unit::TestCase def setup @string10 = "hello" end def test10 assert_equal @string10, "hello" end end The following command line works great: ruby -r debug bikle_test.rb Next, I create a new rails application with this command line: rails rtest Then, I create a database.yml: test: adapter: sqlite3 dbfile: db/rtest.db Then I copied bikle_test.rb to... rtest/test/functional/ I altered it a bit so it behaves like a typical Rails test: # # bikle_test.rb # require File.dirname(__FILE__) + ''/../test_helper'' class B...
2005 Nov 27
2
'For each file in folder F do....'
...he same program/procedure to each individually. I'm trying to find how to code something like: For each file in <Folder> do {<Procedure>} is there an easy way to do this? other suggestions? I have tried to list all the files names in a vector e.g. >listfiles[1:10,1] 1 H:/Rtest/AXP.txt 2 H:/Rtest/BA.txt 3 H:/Rtest/C.txt 4 H:/Rtest/CAT.txt 5 H:/Rtest/DD.txt 6 H:/Rtest/DIS.txt 7 H:/Rtest/EK.txt 8 H:/Rtest/GE.txt 9 H:/Rtest/GM.txt 10 H:/Rtest/HD.txt but R doesn't like statements of type >read.table(file=listfiles[1,1]) since 'file'...
2012 Feb 26
2
Help needed! Error in setwd(newdir) : cannot change working directory
...new to R and just trying to write a small script to automate a couple commands. But I run into the setwd(): cannot change working directory. I googled a little bit and tried all fixes/suggestions with no success. Basically I have a script that works from inside a directory with my data (/home/sean/Rtest/Data01). Now I want to modify the script to make it run from the upper directory (/home/sean/Rtest) because I have many data directories under /Rtest, such as /home/sean/Rtest/Data01, /home/sean/Rtest/Data02, /home/sean/Rtest/Data03,..... I want to modify my script so that it will run from /Rtest,...
2003 Nov 20
1
Compile Packages under Windows and CHM
...stall under RedHat Linux 9.0 without a problem. However, I have a small problem under Windows XP. I am using R-1.8.0 on both systems and HTML Help Workshop 4.74.8702.0 on Windows XP. I created the package under Linux. When I try to install the package created under Linux in Windows XP using c:\rtest> rcmd install rtest I get the following error: ######## Formats: chm hhc: not found cp: cannot stat `C:/R-Packages/rtest/chm/rtest.chm': No such file or directory make[1]: *** [chm-rtest] Error 1 make: *** [pkg-rtest] Error 2 *** Installation of rtest failed *** ######## A file wi...
2005 Oct 08
1
windows/g95 peculiarity
...duce. I'm developing a g95 (20050129) compiled package on windows xp pro using R-2.1.1, and gcc-3.4.2 (mingw special). An older version of the F95 package compiled and ran without problems. The new version of the package includes extensive changes in the code. The package has a test function, rtest(), which sets up a testing scenario and runs it. If I try to immediately load the library after starting up R and running rtest(), the following occurs: > library("bpkg") .onLoad: running R_g95_init > o = rtest() Testing cm.estimate... Using short data set (testing)... 25500.0000...
2005 Mar 17
1
Compiling "embedding R" examples
...b/R/lib" But I get the following error messages during linking: --------------------- laurent at pollux $ make clean laurent at pollux $ make gcc -I. -I../../src/include -I/home/laurent/R-2.0.1/src/include -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c /home/laurent/R-2.0.1/tests/Embedding/Rtest.c -o Rtest.o gcc -I. -I../../src/include -I/home/laurent/R-2.0.1/src/include -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c /home/laurent/R-2.0.1/tests/Embedding/embeddedRCall.c -o embeddedRCall.o ../../bin/R CMD LINK gcc -o Rtest Rtest.o embeddedRCall.o -L/home/laurent/R-clean/lib -lR mkdir .lib...
2008 Jun 09
1
DO NOT REPLY [Bug 5528] New: rsync deletes files it shouldn't even look at!
...P3 Component: core AssignedTo: wayned@samba.org ReportedBy: samba@ote.taranis.org QAContact: rsync-qa@samba.org Looked at the "NOTABLE CHANGES" section in 3.0.0 but i didn't see anything that sounded like this should work differently: $ rm -rf /tmp/RTEST ; mkdir -p /tmp/RTEST/SRC /tmp/RTEST/TARGET/foo $ /z/pkgs/rsync-2.6.9/bin/rsync -v -a --ignore-existing --delete /tmp/RTEST/SRC/ /tmp/RTEST/TARGET/oink building file list ... done ./ sent 76 bytes received 26 bytes 204.00 bytes/sec total size is 0 speedup is 0.00 ^^^^^ As expected. $ rm -rf /...
2008 Oct 14
1
To all TextMate users that wants to run tests with cmd + r in Rails 2.1 and above.
...cript. So yeah, it doesn''t fix the textmate issue. It does however makes it easy to run either all tests, all unit/functional/integration tests, or a single test, from the command line. Which is sorta OK, you probably have a terminal sitting there doin'' nothing anyway. Usage: * rtest unit - runs all unit tests * rtest unit post - runs the unit test for the ''post'' model * rtest unit post comment foo - runs those tests, yep * rtest functional - you guessed it! * rtest integration - blows up your computer --~--~---------~--~----~------------~-------~--~----~ You...
2003 Sep 01
2
Error in dyn.load
Hi, I've created a shared library from including this code (with g++ -I/usr/local/lib/R/include -I/usr/local/include -c Rtest.cpp; g++ -shared -L/usr/local/lib -o Rtest.so Rtest.cpp): void check_data (SEXP data) { int l=length (data); } But when I try to load it in R I get this error message: unable to load shared library ... ... undefined symbol: _Z9Rf_lengthP7SEXPREC How can I solve this problem? Philip
2008 Nov 26
1
Running rtest - how to/ help
I am trying to run rTest example (XP, Eclipse, ) available with code. JRI etc are used from the rJava package (i.e. Haven't built myself) The code dosent runs properly - it shows ( i tried passing argument as --save). what else is possible. 'Creating Rengine (with arguments)' and then gets terminated. When I...
2005 Feb 04
5
simple example of C interface to R
i'd like to use the C interface to R in a program i'm writing. as a starting point, i'm trying to create a very simple C program that uses R. i've read the R documentation on this, but i'm having trouble figuring out where SEXP is defined and how to use it. i noticed someone else on this list also tried to use the C interface, but they ran into similar problems:
2003 Jul 07
1
Problems with a dll under windows
I am trying to get a dll compiled for use with dyn.load. I use R.1.7.1 under Windows. I have tried the following trivial example based on the "Writing R extensions" manual. rtest.h -------- class X { public: X (); ~X (); void Give7(double*); }; class Y { public: Y (); ~Y (); }; rtest.cpp --------- #include <iostream.h> #include "rtest.h" static Y y; extern "C" { void X_main () { X x; } } X::X() { std::cout &...
2006 May 25
1
compiling tests/Embedding
...f 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 hawk0:/data5/ost/R/R-2.3.0/tests/Embedding> make ../../bin/R CMD LINK gcc -o Rtest Rtest.o embeddedRCall.o -L`cd ../.. && /bin/pwd`/lib -lR gcc -o Rtest Rtest.o embeddedRCall.o -L/autofs/tewa_data5/ost/R/R-2.3.0/lib -lR -Wl,--rpath -Wl,/data5/ost/R/R-2.3.0/lib embeddedRCall.o(.text+0x1e): In function `Test_tryEval': /autofs/tewa_data5/ost/R/R-2.3.0/tests/Embedding...
2010 Sep 28
2
Opening a .R file with R (Windows)
I am new to using R. I installed R on my computer (Windows) and everything things appears to be just fine. However, I have a simple script RTest.R that does a few simple calculations. When I double-click the RTest.R icon, I get an Information dialong box which says, "ARGUMENT 'C:\Documents and Settings\kgilder\Desktop\RTest.R' __ignored__" . When I choose OK, R then opens, but it does not open or display the script. Any...
2010 Sep 15
4
Sas to R
...rable program or batch file. ] SAS CODE: options xwait xsync; %let Rsource=S:\EPI_Data\Communicable Diseases\DR1355 Historic Communicable Disease Analaysis\R graphics; options xwait xsync; x '"D:\Program Files\R\R-2.9.2\bin\Rgui.exe" --no-save --quiet <""&rsource.\Rtest.R""> ""&rsource.\Rtest.log""'; What I need it to do is call R, run an R program and then go back to running sas. Any ideas on how to do that? Thanks! Sarah -- --- Sarah Jilani (317) 979 2830 [[alternative HTML version deleted]]
2001 Mar 30
1
Problem with rtest.c
I have some problems with the rtest.c example under gnuwin32\front-ends I am able to build it and it runs without problems. But when I give it a command that isn't defined it crashes. This only happens when I build it in then complicate case where it uses R_ReplDLLdo1(). Any help would be appreciated. Ps. Sorry my poor English...
2009 May 29
0
Help installing sna on Solaris 10/Intel
...at R thinks is the default paths to libraries and include files, but I have no idea how those are controlled from within R (should I be setting environment variables? Is there a configuration file I can tweek?) Tia, -y * Installing *source* package 'sna' ... ** libs gcc -std=gnu99 -I/tmp/rtest/foo/lib/R/include -I/usr/local/include -fpic -g -O2 -c components.c -o components.o gcc -std=gnu99 -I/tmp/rtest/foo/lib/R/include -I/usr/local/include -fpic -g -O2 -c geodist.c -o geodist.o gcc -std=gnu99 -I/tmp/rtest/foo/lib/R/include -I/usr/local/include -fpic -g -O2 -c gli.c -o gl...
2018 Feb 02
0
mpfr and gsl problem on SLES11 SP4
Dear Team, Maybe somebody already tried to install mpfr and gsl packages for R on SLES. Exactly I try to install Rmpfr_0.6-1.tar.gz and gsl_1.9-10.3.tar.gz on SLES11 SP4. These are the available packages from official SLES SDK media: rtest:/home/ruser # rpm -qa | grep -i gsl gsl-devel-1.11-1.30 gsl-1.11-1.30 rtest:/home/ruser # As I understand gsl is from 1.11 till 1.30 level. rtest:/home/ruser # rpm -qa | grep -i mpfr libmpfr1-2.3.2-3.118.1 mpfr-devel-2.3.2-3.118.1 rtest:/home/ruser # GSL installation: https://cran.r-pr...
2006 Apr 03
3
New software, test site, OpenProfile
I''ve just put a new Ruby On Rails application up for testing at: <http://rtest.openprofile.net> Open Profile can be used as a login and user profile module for any Ruby On Rails application. Its purpose is to minimize the hassle of joining new web forums (or anything else on the web that requires you to enter a user name, email addres, password twice, etc.). If it'...
2006 Sep 28
2
calling R from within Java, using jri
...Java, using jri as per http://www.rosuda.org/software/jri/ So I am following the instructions in the README file for JRI 0.2-4. I have run 'sh configure.win' and 'make' and they seemed to be successful. (See below for the output from make, for example.) But when I try 'run.bat rtest' (with and without R command line arguments) the output that I get is 'c:\temp\r\jri>C:/PROGRA~1/Java/JDK15~1.0_0/bin/java -cp .;examples;src/JRI.jar rtest $* Creating Rengine (with arguments)' That suggests that it gets to line 60 in rtest.java then stops on line 61, without pr...