Displaying 20 results from an estimated 10000 matches similar to: "Side-effects of require() vs library() on x86_64 aka amd64"
2013 Jun 25
0
having trouble installing RDieHarder
Hello,
I am having trouble installing the package from CRAN. As the package compiles I get:
* installing *source* package ‘RDieHarder’ ...
** package ‘RDieHarder’ successfully unpacked and MD5 sums checked
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for
2007 Jul 21
2
dict package: dictionary data structure for R
Hi all,
The dict package provides a dictionary (hashtable) data
structure much like R's built-in environment objects, but with the
following differences:
- The Dict class can be subclassed.
- Four different hashing functions are implemented and the user can
specify which to use when creating an instance.
I'm sending this here as opposed to R-packages because this package
will
2010 Aug 13
2
64 bit RSQLite
Hi folks,
Ubuntu 10.04 64 bit
Where can I find 64 bit RSQLite?
It seems not there;
RSQLite: SQLite interface for R
http://cran.r-project.org/web/packages/RSQLite/index.html
TIA
B.R.
Stephen L
2008 Jun 04
2
RSQLite bug fix for install with icc
Seth,
I encountered problems installing RSQLite, R-2.7.0, on RHEL4 using
Intel 10.1 icc, My sysadmin helped me track down the problem and
kindly forwarded me the fix, which corrected the problem.
What follows is from the sysadmin. Mark
I looked at the error, looks like there is a bug in the source code.
I've attached a new tarball, hopefully fixed.
I added
#include <sys/types.h>
2008 Sep 15
2
S4 coercion responsibility
Should functions or the user be responsible for coercing an S4 object
argument containing the proper object (and thus should below be
considered a bug in the packages or not)?
The example is with RSQLite but the same thing happens with RMySQL, and
other DBI packages.
> library("RSQLite") Loading required package: DBI
> m <- dbDriver("SQLite")
> con <-
2009 Jan 29
0
RDieHarder with file input invocation
I got hold of the 0.0.7 RDieHarder binary package as zip for Windows from CRANextras but don't know how to invoke its main method dieharder() in R with "file_input" as RNG argument - how to specify path to that input file ?
the 0.0.7 as opposed to 0.1.0 doesn't seem to have ''inputfile'' arg for path specification. So is "file_input" prior to 0.1.0
2008 Jan 31
1
segfault in gregexpr()
Hi,
Tried with R 2.6 and R 2.7:
> gregexpr("", "abc", fixed=TRUE)
*** caught segfault ***
address 0x1c09000, cause 'memory not mapped'
Traceback:
1: gregexpr("", "abc", fixed = TRUE)
Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace
2008 Feb 21
1
Suggestion: isLoaded() to test if a package is loaded (without loading it)
Hi,
for 'affxparser' (Bioconductor), we needed a function to test if a
certain package was loaded or not, but we did not want to load it if
it wasn't, which is why we couldn't use require(). We came up with
the following solution:
isPackageLoaded <- function(package, version=NULL, ...) {
s <- search();
if (is.null(version)) {
s <-
2007 Nov 14
1
isOpen on closed connections
As far as I can tell, 'isOpen' cannot return FALSE in the case when 'rw = ""'.
If the connection has already been closed by 'close' or some other function,
then isOpen will produce an error. The problem is that when isOpen calls
'getConnection', the connection cannot be found and 'getConnection' produces an
error. The check to see if it is
2007 Aug 17
2
Overriding S4 methods in an installed package
Is it possible to override S4 methods in an installed package?
The naive
library("pkg")
setMethod("foo", signature(obj = "bar"),
function(obj , x, y) { new definition }
, where="package:pkg")
results in the error
Error in setMethod("foo", signature(obj = "bar"), function(obj, :
the environment "pkg" is
2009 Oct 29
2
Help with lang4
Hi
I seem to have run into a situation where I have more than 3 arguments to
pass to a function from C.
the following functions help me build an expression for evaluation:
lang
lang2
lang3
lang4
What should one do if there are more arguments than lang4 can handle?
Regards
Abhijit Bera
[[alternative HTML version deleted]]
2010 Jul 09
2
Compress string memCompress/Decompress
Hello,
I would like to compress a long string (character vector), store the compressed string in the text field of a SQLite database (using RSQLite), and then load the text back into memory and decompress it back into the the original string. My character vector can be compressed considerably using standard gzip/bzip2 compression. In theory it should be much faster for me to compress/decompress
2007 Aug 10
2
Convert multiple C strings into an R character vector
I was hoping someone could tell me how to convert multiple C character
strings into an R character vector.
Thanks,
Jon
--
View this message in context: http://www.nabble.com/Convert-multiple-C-strings-into-an-R-character-vector-tf4249882.html#a12095059
Sent from the R devel mailing list archive at Nabble.com.
2007 Aug 15
1
package dependencies
I created an add-on R package. In this package, there is a line
"require(pckgname)", because I need to call some functions in pckgname. My
package is successfully built and can be successful installed. But R CMD
check can not be executed. The error message is:
* checking package dependencies ... ERROR
Packages required but not available:
pckgname
Actually, before running R CMD
2009 Oct 16
1
(PR#14012)
I think Rscript has a problem running files that have mac encodings
for newline (^M rather than ^J on linux). If I source the file within
R, it works okay:
> source('j.R')
[1] "MEA_data/sernagor_new/CRX_P7_1.txt"
But if I run the file using Rscript on a linux box I get a strange
error message:
$ Rscript --vanilla j.R
"
Execution halted
The example script j.R is at
2010 Jan 19
1
calling setGeneric() twice
Is it safe to call setGeneric twice, assuming some setMethod's for the
target function occur in between? By "safe" I mean that all the
setMethod's remain in effect, and the 2nd call is, effectively, a no-op.
?setGeneric says nothing explicit about this behavior that I can see.
It does say that if there is an existing implicity generic function it
will be (re?)used. I also tried
2010 Mar 17
1
Suggestion: Not having to export .conflicts.OK in name spaces
Currently library() and attach() fail to locate an existing
'.conflicts.OK' in a package wit name space, unless it is exported.
Since there should be little interest in exporting '.conflicts.OK'
otherwise, one may argue that those methods should look for
'.conflicts.OK' even if it is not exported. If so, a patch for
library() is:
>svn diff library.R
Index: library.R
2010 Mar 19
1
DESCRIPTION: Imports: assertion of version?
Hi,
from 'Writing R Extensions' [R version 2.11.0 Under development
(unstable) (2010-03-16 r51290)] one can read:
"The optional `Imports' field lists packages whose name spaces are
imported from but which do not need to be attached. [...] Versions can
be specified, but will not be checked when the namespace is loaded."
Is it a design decision that version specifications
2010 Mar 31
1
Difference Linux / Windows
Hi the list,
I am writing a package that happen to not be compatible with linux
because I did not know that the function "savePlot" was available only
on windows. Is there a list of "incompatible" function? How can I get
this kind of information?
Thanks
Christophe
2010 Apr 27
2
Resolving functions using R's namespace mechanism can double runtime
It appears that the runtime for an R script can more than double if a few
references to a function foo() are replaced by more explict references
of the form pkgname::foo().
The more explicit references are of course required when two
loaded packages define the same function.
I can understand why use of this mechanism is not free in an
interpreted environment like R, but the cost seems rather