Displaying 20 results from an estimated 2000 matches similar to: "XML: Slower parsing over time with htmlTreeParse()"
2010 Mar 15
0
RMySQL: Slower parsing over time with htmlTreeParse()
Dear List,
has anyone of you experienced a significant increase in the time it takes to
parse an URL via "htmlTreeParse()" when this function is called repeatedly
every minute over a couple of hours?
Initially, a single parse takes about 0.5 seconds on my machine (Quad Core,
2.67 GHz, 8 MB RAM, Windows 7 64 Bit), . After some time, this can go up to
15 seconds or more.
2010 Aug 17
4
Problems building own package (Error: "package has been build before R-2.10.0")
Dear List,
I’m doing my first baby steps towards developing own R Packages and ran into
the following problem:
R CMD check mypackage works fine (no errors, no warnings)
R CMD build mypackage works fine (no errors, no warnings)
R CMD INSTALL –library=”C:\R\R-2.11.1\library”
“something\mypackage\mypackage_1.0.tar.gz” works fine (no errors, no
warnings)
However, when I try loading the
2010 Aug 17
4
Problems building own package (Error: "package has been build before R-2.10.0")
Dear List,
I’m doing my first baby steps towards developing own R Packages and ran into
the following problem:
R CMD check mypackage works fine (no errors, no warnings)
R CMD build mypackage works fine (no errors, no warnings)
R CMD INSTALL –library=”C:\R\R-2.11.1\library”
“something\mypackage\mypackage_1.0.tar.gz” works fine (no errors, no
warnings)
However, when I try loading the
2011 Jun 03
2
Bug or feature: using "ANY" as a generic field class (was: '[R] Is there a (virtual) class that all R objects inherit from?)
Dear list,
I was wondering if you could help me out in clarifying something:
Is it possible to use class "ANY" in slots/fields of formal classes if you
a) do not want to restrict valid classes of that field and
b) if you are making explicit use of class inheritance?
It seems to work in simple scenarios but produces errors when class
inheritance comes into play. So I was
2010 Sep 03
2
Stats not loaded? Method for as.ts() results in error
Dear list,
I've got the following problem:
In a package I'm trying to build, there exists a method for the function
"as.ts()". When checking the package, R always throws the error that it
cannot find a function called "as.ts". To me it seems that the package
"stats" (home of "as.ts()") is not loaded during the checking process even
though
2010 Nov 04
2
Roxygen: @example tag does not work for me
Dear list,
somehow I can't get the Roxygen tag "@example" to work for me.
My "Roxygen-Header" of a script containing, say, a function looks like this:
#' My header
#'
#' My description
#'
#' @param a Blabla.
#' @param b Blabla.
#' @return \code{TRUE}.
#' @callGraphPrimitives
#' @references
#'
2010 Nov 17
2
Reference classes: accessor functions via 'getRefClass(...)$accessors(...)'
Hi there,
I''d like to choose between an "static" and "dynamic" access of a reference
class field, say ''a''.
myObj <- getRefClass("Blabla")$new()
Static: myObj$a
Dynamic: myObj$a.get() where the function retrieves the data
from a database (or some other location), stores it to a buffer and
2010 Sep 17
3
How to set up an own package repository
Dear List,
I'd like to set up a package repository so I can use install.packages() on
it for home-grown packages. I set up an AMPP infrastructure on a windows box
already, but I'm pretty lost with respect to what to do next as I didn't do
any web-programming/admin yet. Could anyone recommend some r-specific
tutorials or has a couple of suggestions for me? I've had a look at the
2010 Nov 21
1
reference classes: question on inheritance
Dear list,
I have a reference class which should act as a "generic" superclass for
other classes. I've read the respective section at ?setRefClass and put the
name of the superclass to the 'contains' argument of an example subclass
(see class defs below). Classnames are set in a way that shouldn't result in
collation issues (virtual def sourced before superclass def
2012 Feb 10
1
Bug with memory allocation when loading Rdata files iteratively?
Dear list,
when iterating over a set of Rdata files that are loaded, analyzed and
then removed from memory again, I experience a *significant* increase in
an R process' memory consumption (killing the process eventually).
It just seems like removing the object via |rm()| and firing |gc()| do
not have any effect, so the memory consumption of each loaded R object
cumulates until
2010 Nov 04
1
[Roxygen-devel] Roxygen: @example tag does not work for me
> -----Urspr?ngliche Nachricht-----
> Von: roxygen-devel-bounces at lists.r-forge.r-project.org [mailto:roxygen-
> devel-bounces at lists.r-forge.r-project.org] Im Auftrag von Vinh Nguyen
> Gesendet: Donnerstag, 4. November 2010 04:04
> An: roxygen-devel at r-forge.wu-wien.ac.at
> Betreff: Re: [Roxygen-devel] Roxygen: @example tag does not work for me
>
> Try @examples
2010 Nov 15
1
Create NAMESPACE file as 'package.skeleton()' would do
Hi there,
is there a way to create a NAMESPACE file based on Rd-files (or whatever is
needed in order to apply the regular expression "^[[:alpha:]]+" without(!)
resorting to package.skeleton() (as this kind of interferes with
roxygenize() pretty often)?
Thanks a lot,
Janko
[[alternative HTML version deleted]]
2010 Nov 23
1
Reference Classes: removing methods -> implications for objects/instances of that class
Dear list,
just to make sure that I understand 'unregistering' methods for S4 reference
classes correctly:
If I registered a method and want to 'unregister' (i.e. remove) this method
again, objects/instance created of the respective class still feature the
removed method until I do an explicit reassign ('my.instance <-
getRefClass("Classname")$new()'), right?
2008 Nov 04
2
How to suppress errors from htmlTreeParse() function in XML package?
Dear R-help,
The following code downloads an html document into variable 'doc' and
then stores an internal representation into variable 'html.tree'. Even
if the html code is malformed, this still works which is fantastic.
However, as in the example below, i do get some ouput from R in the
console which i would like to suppress somehow, so i can keep my
window a bit cleaner.
I
2010 Jan 15
1
Can an object reference itself?
Dear List,
I am not really familiar with any other language than R, but I?ve heard that
in other languages there is something called ?self referencing?.
Here?s what I?m trying to get an answer for:
Suppose there is a function that takes as its input a value of a slot of an
S4 object. The function itself is stored in another slot of the SAME S4
object. Is it then possible to have the function
2014 Dec 15
3
Significant memory leak when using XML on Windows
Thanks a lot for answering. Before I get into it, please note that
everything below bears the big capture "Thanks for trying to help me at
all".
1) Yeah, those examples - quite hard to satisfy everyone's needs ;-) While
the one side complained that my past examples regarding this issue were not
informative enough, others didn't like the more elaborated version (as
seems to be
2010 Aug 18
1
Automatically retrieve correct collation
Dear List,
consider the following scenario:
setClass(Class = "A", representation = representation(B = "B", C = "C"))
setClass(Class = "B", representation = representation(C = "C"))
setClass(Class = "C", representation = representation(something =
"character"))
Obviously, the collation for sourcing these defs needs to be: C,
2009 Aug 21
1
Function "nsl()" missing in package utils
Dear list,
today I stumbled across the function ?nsl()? for the first time in order to
perform a hostname lookup. According to the R Reference Index (Version
2.9.1, page 1522), the function should be part of the "utils" package.
However, I cannot find it in the utils package of my installation(s). I've
tried the R-versions 2.8.1, 2.9.0 and 2.9.1.
I'd be very thankful if
2014 Dec 11
3
Significant memory leak when using XML on Windows
Dear list,
I'm sorry to keep coming back with this time and time again, but this bug
is still not fixed even though the root cause of the issue has been around
for 2-3 years now. And as the number of packages that depend on XML grows,
I thought maybe this deserves some wider attention.
I did my best to make reproduction of the issue as easy as possible:
2014 Nov 27
2
Feature request: mixing `...` (three dots) with other formal arguments in S4 methods
Hi Gabriel,
and thanks for answering. I'm basically just trying to find a way to use
the power of `...` in more complex scenarios and I'm well aware that this
might not be the best approach ;-)
Regarding your actual question:
"Are you suggesting methods be dispatched based on the *contents* of ...
[...]?"
Yes, I guess currently I kind of do - but not on the argument *names*