similar to: Reading a specific file during "R CMD check"?

Displaying 20 results from an estimated 7000 matches similar to: "Reading a specific file during "R CMD check"?"

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
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,
2009 Oct 26
2
R CMD check: Error in .C
Function/file names are hypothetical. Say I have written myfunction.R, which calls myfunction.c via .C("myfunction", ...). I've compiled successfully myfunction.c via R CMD SHLIB myfunction.c in the terminal. Then, in the R console: dyn.load("myfunction.so") source("myfunction.R") test <- myfunction() # works fine So everything is in order, myfunction works
2012 Mar 22
2
R 2.14.1 memory management under Windows
I computed "system.time(diag(30000))" with R 2.12.0 on Fedora 13 Linux with 4 GB RAM and with R 2.14.1 on Windows 7 with 8 GB RAM: Linux (4 GB RAM): 0, 0.21, 0.21 -- a fifth of a second Windows 7 (8 GB RAM): 11.37 7.47 93.19 -- over 1.5 minutes. Moreover, during most of that time, I could not switch windows or get any response from the system. When I first encountered this, I
2011 Aug 02
2
R CMD check problem
Dear friends, I am building an R package called *mypackage*. I followed every possible steps (to my understanding) for the same. I got following problem while doing *R CMD check mypackage*. * installing *source* package 'mypackage' ... ** libs cygwin warning: MS-DOS style path detected: C:/PROGRA~1/R/R-213~1.0/etc/i386/Makeconf Preferred POSIX equivalent is:
2013 Feb 04
2
Wide character in print?
Hello: I get "Wide character in print" from trying read.xls("22_data.xls") in the gdata package, with "22_data.xls" downloaded from "Varieties_Country_A-E.xls" at "http://www.reinhartandrogoff.com/data/browse-by-topic/topics/7/": > library(gdata) > read.xls("22_data.xls") Wide character in print at
2012 Jul 09
1
c(a, b) for POSIXct objects with tzone attributes?
Hello: What is the recommended method for retaining the tzone attributes when concatonating POSIXct objects? > (d1 <- ISOdate(1970,1,1)) # Sets the tzone attribute = GMT [1] "1970-01-01 12:00:00 GMT" > (d1.2 <- c(d1, d1)) # c(..) strips the tzone attribute, displays in the time zone of the operating system [1] "1970-01-01 04:00:00 PST" "1970-01-01
2013 Oct 11
3
Gaussian Quadrature for arbitrary PDF
Hi all, We know that Hermite polynomial is for Gaussian, Laguerre polynomial for Exponential distribution, Legendre polynomial for uniform distribution, Jacobi polynomial for Beta distribution. Does anyone know which kind of polynomial deals with the log-normal, Student抯 t, Inverse gamma and Fisher抯 F distribution? Thank you in advance! David [[alternative HTML version deleted]]
2012 May 04
1
Rprofile.site under Windows 7?
Hello All: I'm still unable to get Rprofile.site to set, e.g., options(max.print=222), as I did with previous versions of R. I just found similar questions posed by Trevor Miles and Ross Bowden with replies by Uwe Ligges and Duncan Murdoch. In addition to the things I tried documented below, I also copied Rprofile.site into "R_HOME/etc/i386" and
2012 Jul 17
1
R CMD build/check on Windows 7
Folks: sessionInfo() R version 2.15.0 (2012-03-30) Platform: i386-pc-mingw32/i386 (32-bit) locale: [1] LC_COLLATE=English_United States.1252 [2] LC_CTYPE=English_United States.1252 [3] LC_MONETARY=English_United States.1252 [4] LC_NUMERIC=C [5] LC_TIME=English_United States.1252 attached base packages: [1] datasets splines grid tcltk stats graphics grDevices [8] utils
2010 Jun 16
2
Package development process?
Hello, All: What thoughts might you have on "The R Software Package Development Process"? I'm looking for ideas, materials, references, and / or collaborators for an article on this topic to be submitted to the Communications of the ACM. My limited experience with other languages such as Matlab and Python suggests that R may be fairly unique with CRAN and this
2012 Jul 17
1
R CMD build/check on Windows 7
Folks: sessionInfo() R version 2.15.0 (2012-03-30) Platform: i386-pc-mingw32/i386 (32-bit) locale: [1] LC_COLLATE=English_United States.1252 [2] LC_CTYPE=English_United States.1252 [3] LC_MONETARY=English_United States.1252 [4] LC_NUMERIC=C [5] LC_TIME=English_United States.1252 attached base packages: [1] datasets splines grid tcltk stats graphics grDevices [8] utils
2001 Jul 25
1
Usage of R CMD INSTALL
The help page for INSTALL says, in part, Some package sources contain a `configure' script that can be passed arguments or variables via the option `--configure-args' and `--configure-vars', respectively, if necessary. The latter is useful in particular if libraries or header files needed for the package are in non-system directories. In this case, one can
2012 May 20
4
write.xls
Hello, All: The "writeFindFn2xls" function in the "sos" package tries to write an Excel file with 3 sheets ('PackageSum2', 'findFn', 'call'). Unfortunately, it is often unable to do this because of configuration problems that are not easy to fix. I've found 3 contributed packages that provide facilities to write Excel files with
2012 Feb 29
1
Replace back slashes with forward slashes?
Hello, All: What can people tell me about converting back slashes to forward slashes in character strings? Several years ago, Prof. Ripley provided a solution, which I lost and have not been able to find. Below please find a function to do this. I do not find this very satisfactory, however, because it uses "scan" and therefore operates on an input not a
2011 May 17
1
simprof test using jaccard distance
Dear All, I would like to use the simprof function (clustsig package) but the available distances do not include Jaccard distance, which is the most appropriate for pres/abs community data. Here is the core of the function: > simprof function (data, num.expected = 1000, num.simulated = 999, method.cluster = "average", method.distance = "euclidean", method.transform =
2002 Dec 18
6
Can I build an array of regrssion model?
Hi, I am trying to use piecewise linear regression to approximate a nonlinear function. Actually, I don't know how many linear functions I need, therefore, I want build an array of regression models to automate the approximation job. Could you please give me any clue? Attached is ongoing code: rawData = scan("c:/zyang/mass/data/A01/1.PRN", what=list(numeric(),numeric())); len =
2012 Dec 10
1
Can somebody suggest how to achieve following data manipulation?
Dear all, Let say I have following data: RawData <- matrix(1:101, nr = 1); colnames(RawData) <- c("ASD", as.character(as.yearmon(seq(as.Date("2012-03-01"), length.out = 100, by = "1 month")))); rownames(RawData) <- "XYZ" CutOffDate <- as.Date("2012-09-01") NewDateSeries <- as.character(as.yearmon(seq(CutOffDate, to =
2008 Mar 23
1
mapply
In an earlier post, a person wanted to divide each of the rows of rawdata by the row vector sens so he did below but didn't like it and asked if there was a better solution. rawdata <- data.frame(rbind(c(1,2,2), c(4,5,6))) sens <- c(2,4,6) temp <- t(rawdata)/sens temp <- t(temp) print(temp) Gabor sent three other solutions and I understood 2 of them but not the