Displaying 20 results from an estimated 200 matches similar to: "Problem with accessing internal variable in package."
2007 May 25
1
private variables in package.
I am sorry, my previous questions about hiding variables from users in a
package were obscure and vague, and would like to clarify them.
This should be a basic question.
I am writing my first package.
It has several functions, which should be callable by users.
These functions use several variables, and I would like to hide these
variables from users.
How can I do it?
For example, the package
2013 Feb 21
4
Getting htmlParse to work with Hebrew? (on windows)
Hello dear R-help mailing list.
Looks like the same issue in Russian:
library(RCurl)
library(XML)
u = " http://www.cian.ru/cat.php?deal_type=2&obl_id=1&room1=1"
a = getURL(u)
a # Here - the Russian is fine.
a2 <- htmlParse(a)
a2 # Here it is a mess...
None of these seem to fix it:
htmlParse(a, encoding = "windows-1251")
htmlParse(a, encoding =
2007 Jan 23
2
is it necessary to always register C routines with R_registerRoutines?
I am writing bindings to the neural network simulator SNNS.
At present I have used only .C interface, now I'm studying .Call interface.
I have adapted the example from page 77 of r-exts.pdf, however, it crashes
R.
I use MingW as recommended by Duncan Murdoch.
Please, tell me what I am missing.
The code is below.
Thank you.
SEXP snns_getVersion(void)
{SEXP version;
char *v;
2007 Aug 31
1
About "=" in command line in windows.
It seems, I don't understand something, or there is a bug in R.
I have made some experiments after my yesterday post about using "=" with -e
switch to the Rscript.
Now, I've found:
(1)
C:\users\wl\trainings\r>rscript --verbose -e "mean(x=1:3)"
running
'C:\Program Files\R\bin\Rterm.exe --slave --no-restore -e mean(x=1:3)'
Error in -args : invalid
2009 Sep 26
1
mboost_1.1-3 blackboost_fit (PR#13972)
Full_Name: Ivan the Terrible
Version: 2.9.2
OS: Windows XP SP3
Submission from: (NULL) (89.110.13.151)
When using the method blackboost_fit of the package mboost appear following
error :
Error in party:::get_variables(obj at responses) :
trying to get slot "responses" from an object (class "boost_data") that is not
an S4 object
Simple test case that produce bug:
2017 Aug 28
3
[bug report] Cyrillic letter "я" interrupts script execution via R source function
Hello,
I do not have an account on R Bugzilla, so I will post my bug report here.
I want to report a very old bug in base R *source()* function. It relates
to sourcing some R scripts in UTF-8 encoding on Windows machines. For some
reason if the UTF-8 script is containing cyrillic letter *"?"*, the script
execution is interrupted directly on this letter (btw the same scripts are
sourcing
2007 May 28
1
How to correctly write a package?
I am writing a package.
Please, study the sequence of my actions below, and comment, what's
incorrect.
The package contains pure R code.
1. At the one level up from the package directory, from the system command
prompt:
R CMD build --binary ac9
This produces the file ac9_0.1.zip (The package name is ac9, and the
package's DESCRIPTION file says its version is 0.1)
2. Then I run Rgui in
2007 May 22
2
Please, remind a function name
Sorry, I'm stuck. :)
I am writing a function, which would fit either one linear model or another
one, depending on its argument model.type.
And I don't want to use several if's, because R allows doing it with much
more beauty.
That is I am looking for prettier alternative to the following
AB2C<-function(a,b,model.type="S") { # or HK, and return NULL if this
argument has
2001 Sep 07
4
ext3-2.4-0.9.9
Patches against 2.4.10-pre4 and 2.4.9-ac9 are at
http://www.uow.edu.au/~andrewm/linux/ext3/
It's a fairly large change. The most significant parts are
* the inclusion of Stephen's error-handling work, which is designed to
remount the fs read-only in the presence of software and hardware
errors, rather than forcing a panic.
* Stephen's fix for the journal_revoke assertion
2001 Sep 06
1
quota problems with ext3/249-ac9
Hi!
I've got some "serious" quota-problems with ext3... it seems not to work
at all...
I'm currently running 249-ac9 with no patches, slackware 7.x-current from
january or so, all the quota-utils from the original distribution.
the kernel prompts correctly "VFS: Diskquotas version dquot_6.5.0
initialized" and that was it. neither quotacheck nor repquota or any other
2001 Sep 16
1
interactivity.patch
Has anyone had any success with the interactivity.patch on the ext3
website? I'm going to try to use it because I've had a lot of lockups in
past day under heavy load with 2.4.9-ac9, and I can't figure out if it's
because of ext3 or VM or my crappy VIA IDE controller.
2001 Sep 19
1
Why is .journal file sometimes visible and sometimes not?
Hi.
I recently migrated two machines from ext2 to ext3. Kernels (nearly
identical) are 2.4.9-ac9 + preemptivity-patch + wrr-patch. The Installations
are based on Mandrake 7.2 + 8.0. Also I have e2fstools-1.23 newly compiled on
them. Both machines have two ext3 partitions (root + multimedia-data). On one
machine I see a .journal file on both partitions, on the other machine
(Mandrake-8.0)
2007 Aug 30
0
bug in DEoptim package
(the same mail was sent to the author)
When I called the function DEoptim with control=list(strategy=1) or
control=list(strategy=2)
I got the error:
Error in mui[rtd + 1, i] : incorrect number of dimensions
Analysis of the source code of the DEoptim reveals the following fragment
if (con$strategy > 5)
st <- con$strategy - 5 ## binomial crossover
else {
st <-
2017 Aug 28
0
[bug report] Cyrillic letter "я" interrupts script execution via R source function
My understanding (which could be wrong) is that when you source a file,
it first gets translated to your native locale and then parsed. When you
parse a character vector, it does not get translated.
In your locale, every "?" character (U+044F) gets replaced by the byte
"\xFF":
> iconv("\u044f", "UTF-8", "Windows-1251")
[1]
2003 Dec 01
0
No subject
happens. It also appears that somewhere in steps 1 and 2 above Word sends
a request to turn off the read,write,and execute bits for the owner of the
file. When you look at this filesystem after the attempted save the
original file does indeed have these bits cleared (i.e. the user has no
read,write,or execute permissions on the file), and that I think is why
the error is being generated.
2002 Jul 08
0
(no subject)
Which version should I use out of the list? Or do I install all of them, one after the other?
ext3-2.4-0.9.9-2410p4.gz 05Sep01 (Against 2.4.10-pre4) (Changelog)
ext3-2.4-0.9.9-249ac9.gz 05Sep01 (Against 2.4.9-ac9)
ext3-2.4-0.9.10-2410.gz 23Sep01 (Against 2.4.10) (Changelog)
patch-rml-2.4.10-ac3-ext3-0.9.9-with-dir-speedup-1.gz 01Oct01 (From Robert Love. Unofficial :-))
2002 Jul 11
1
(no subject)
Which version should I use out of the list? Or do I install all of them, one after the other?
ext3-2.4-0.9.9-2410p4.gz 05Sep01 (Against 2.4.10-pre4) (Changelog)
ext3-2.4-0.9.9-249ac9.gz 05Sep01 (Against 2.4.9-ac9)
ext3-2.4-0.9.10-2410.gz 23Sep01 (Against 2.4.10) (Changelog)
patch-rml-2.4.10-ac3-ext3-0.9.9-with-dir-speedup-1.gz 01Oct01 (From Robert Love. Unofficial :-))
2001 May 17
0
Fwd: ext3 for 2.4
---------- Forwarded Message ----------
Subject: ext3 for 2.4
Date: Thu, 17 May 2001 21:20:38 +1000
From: Andrew Morton <andrewm@uow.edu.au>
To: ext2-devel@lists.sourceforge.net, "Peter J. Braam"
<braam@mountainviewdata.com>, Andreas Dilger <adilger@turbolinux.com>,
"Stephen C. Tweedie" <sct@redhat.com>
Cc: linux-fsdevel@vger.kernel.org
Summary:
2007 Mar 29
1
ansari.test.default: bug in call to uniroot?
A recent message on ansari.test() prompted me to play with the examples. This
doesn't work for me in R version 2.4.1
R> ansari.test(rnorm(100), rnorm(100, 0, 2), conf.int = TRUE)
Error in uniroot(ab, srange, tol = 1e-04, zq = qnorm(alpha/2, lower = FALSE)) :
object "ab" not found
It looks like there's a small typo in ccia() inside
ansari.test.default() in which
2013 Mar 11
2
how to convert a data.frame to tree structure object such as dendrogram
I have a data.frame object like:
> data.frame(x=c('A','A','B','B'), y=c('Ab','Ac','Ba','Bd'))
x y
1 A Ab
2 A Ac
3 B Ba
4 B Bd
how could I create a tree structure object like this:
|---Ab
A---|
_| |---Ac
|
| |---Ba
B---|
|---Bb
Thanks,
Zech
[[alternative HTML version deleted]]