similar to: Project local libraries (reproducible research)

Displaying 20 results from an estimated 10000 matches similar to: "Project local libraries (reproducible research)"

2011 Jan 26
1
compilation error
Hello I'm trying to compile libvirt-0.8.6 on RHEL4 with kernel 2.6.9-67 The make command returns: -------------------- util/interface.c: In function `ifaceGetVlanID': util/interface.c:355: error: `GET_VLAN_VID_CMD' undeclared (first use in this function) util/interface.c:355: error: (Each undeclared identifier is reported only once util/interface.c:355: error: for each function it
2006 Apr 05
2
Problems in package management after Linux system upgrade
I upgraded from Fedora Core 4 to Fedora Core 5 and I find a lot of previously installed packages won't run because shared libraries or other system things have changed "out from under" the installed R libraries. I do not know for sure if the R version now from Fedora-Extras (2.2.1) is exactly the same one I was using in FC4. I see problems in many packages. Example, Hmisc: unable
2011 May 02
1
Capturing the expression representing the body of a function
Hi all, What's the preferred way of capturing the expression representing the contents of a function? * body(write.csv) gives me a braced expression * body(write.csv)[-1] gives me a mangled call * as.list(body(write.csv)[-1]) gives me a list of calls * as.expression(as.list(body(write.csv)[-1])) is what I want but seems like too much work Any suggestions? Thanks, Hadley -- Assistant
2009 Nov 03
1
mac question
Hi there, currently, I've updated R on my Mac (OS X) to version 2.10. I was wondering if I have to install all additional packages again??? In Windows, I just needed to copy the library folder of the old installation but how does it work with Mac? Can anybody give me a hint? Antje
2011 Nov 13
0
Roxygen2: version 2.2
# Roxygen2 The premise of `roxygen2` is simple: describe your functions in comments next to where their definitions and `roxygen2` will process your source code and comments to produce R compatible Rd files. Here's a simple example from the `stringr` package: ? ? #' The length of a string (in characters).? ? #'? ? #' @param string input character vector? ? #' @return numeric
2011 Nov 13
0
Roxygen2: version 2.2
# Roxygen2 The premise of `roxygen2` is simple: describe your functions in comments next to where their definitions and `roxygen2` will process your source code and comments to produce R compatible Rd files. Here's a simple example from the `stringr` package: ? ? #' The length of a string (in characters).? ? #'? ? #' @param string input character vector? ? #' @return numeric
2011 Aug 16
2
sysdata.rda, namespaces and package dependencies
Hi all, I'm struggling with accessing a package dataset (munsell.map, stored in sysdata.rda) when that package is imported, not required. A simple reproducible example is: install.packages("munsell") munsell::mnsl("10B 4/6") # Error in match(col, munsell.map$name) : object 'munsell.map' not found library(munsell) munsell::mnsl("10B 4/6") # Function
2010 Aug 27
2
NEWS and readNEWS
readNEWS() states: Read R's ?NEWS? file or a similarly formatted one. This is an experimental feature, new in R 2.4.0 and may change in several ways and news() also indicates that this tool is supposed to work with non-R news files. However, I've not been able to get readNEWS to read a package news file, even when following the format indicated in news(). Looking at the
2011 Dec 23
1
Debugging namespace problems
Hi all, I frequently find that I've failed to export something in my NAMESPACE and hence my package doesn't work when it's imported into another package. Does anyone have suggestion for debugging this type of problem? R CMD check passes without any ns related errors on both the importee and the importer. I've attached a reproducible example - if you install the development
2015 Dec 01
1
Package Dependency
Lately, I see a dependency problem with R-3.2 systems. install.packages allows dependencies, but they are not installed so the install fails. I see this a lot with students who are able to install packages like ggplot2 but then can't load it because a dependency "stringi" is missing. Those students are generally using Windows, but today I reproduced the same on RedHat Linux with
2010 Nov 09
3
How to detect if a vector is FP constant?
Hi all, What's the equivalent to length(unique(x)) == 1 if want to ignore small floating point differences? Should I look at diff(range(x)) or sd(x) or something else? What cut off should I use? If it helps to be explicit, I'm interested in detecting when a vector is constant for the purpose of visual display. In other words, if I rescale x to [0, 1] do I have enough precision to get
2011 Dec 31
4
Base function for flipping matrices
Hi all, Are there base functions that do the equivalent of this? fliptb <- function(x) x[nrow(x):1, ] fliplr <- function(x) x[, nrow(x):1] Obviously not hard to implement (although it needs some more checks), just wondering if it had already been implemented. Hadley -- Assistant Professor / Dobelman Family Junior Chair Department of Statistics / Rice University http://had.co.nz/
2010 Aug 24
3
require is to suggests as what is to imports?
Hi all, If a package suggests another package in its description, you can check it at runtime with requires. How do you do check if a package is available without loading it, if you only want to access one function in the package namespace. Thanks, Hadley -- Assistant Professor / Dobelman Family Junior Chair Department of Statistics / Rice University http://had.co.nz/
2011 Sep 21
3
Quelplot
Hi all, Does anyone have an R implementation of the queplot (K.?M. Goldberg and B.?Iglewicz. Bivariate extensions of the boxplot. Technometrics, 34(3):pp. 307?320, 1992)? I'm struggling with the estimation of the asymmetry parameters. Hadley -- Assistant Professor / Dobelman Family Junior Chair Department of Statistics / Rice University http://had.co.nz/
2010 Sep 29
1
License of R manuals
Hi all, Under what license are the R manuals (R language definition etc) released? They are not mentioned explicitly in license() and have no license information in the individual documents. Does this mean that they are released under GPL-2? If so, what does that mean, given that they aren't software? Hadley -- Assistant Professor / Dobelman Family Junior Chair Department of Statistics
2011 Feb 07
1
Save and serialize
Hi all, Is there any relationship between save and serialize? Do they use the same algorithm? Hadley -- Assistant Professor / Dobelman Family Junior Chair Department of Statistics / Rice University http://had.co.nz/
2012 Mar 20
1
Substitute adds id attribute?
Hi all, I can't figure out how to make this problem easily reproducible, but I can demonstrate it very simply, so I hoped someone might be able to suggest a place to start: > f <- function(x) substitute(x) > f(x) x > f(mpg) mpg attr(,"id") [1] 11 It works as expected in a clean R session: > f <- function(x) substitute(x) > f(x) x > f(mpg) mpg but not
2012 Jul 27
1
Version of substitute that evaluates it's first argument
Hi all, Does there already exist a version of substitute that evaluates it's first argument? (i.e. it accepts an already quoted expression). This seems like something that's pretty handy, but I haven't found any existing function to do it: substitute_e <- function(expr, env) { eval(substitute(substitute(expr, env), list(expr = expr))) } f <- quote(x + y + z) substitute(f,
2011 Mar 15
1
Persistent storage between package invocations
Hi all, Does anyone have any advice or experience storing package settings between R runs? Can I rely on the user's home directory (e.g. tools::file_path_as_absolute("~")) to be available and writeable across platforms? Hadley -- Assistant Professor / Dobelman Family Junior Chair Department of Statistics / Rice University http://had.co.nz/
2011 Apr 13
2
Line plots in base graphics
Am I missing something obvious on how to draw multi-line plots in base graphics? In ggplot2, I can do: data(Oxboys, package = "nlme") library(ggplot2) qplot(age, height, data = Oxboys, geom = "line", group = Subject) But in base graphics, the best I can come up with is this: with(Oxboys, plot(age, height, type = "n")) lapply(split(Oxboys[c("age",