Displaying 20 results from an estimated 8000 matches similar to: "How to add a welcome message in Package development?"
2011 Feb 19
2
Seeking help in Package development
Dear all, I am a new user of R and currently trying hard to develop my
own package. Here I am following this tutorial
'http://www.mathfinance.cn/how-to-create-an-R-package-in-windows/'
Here it says that (step 8): "open a ?command prompt? window, change
the directory to where your package is, type the command ?R CMD build
MonteCarloPi? to build the package, this will generate a file
2011 Feb 10
3
Finding length of unique numbers in a vector
Hello there, would you please look into my codes? Here I have following:
> set.seed(100)
> samp <- sample(c(1,-1,0), 20, replace=T); samp
[1] 1 1 -1 1 -1 -1 0 -1 -1 1 -1 0 1 -1 0 0 1 -1 -1 0
Here I want to calculate the length of each unique number for above vector.
How can I do that?
Thanks in advance
[[alternative HTML version deleted]]
2011 Jul 18
4
Understanding R's "Environment" concept
Hi all, I am trying to understand the R's "environment" concept
however the underlying help files look quite technical to me. Can
experts here provide me some more intuitive ideas behind this concept
like, why it is there, what exactly it is doing in R's architecture
etc.?
I mainly need some non-technical intuitive explanation.
Thanks,
2011 Jul 18
4
Understanding R's "Environment" concept
Hi all, I am trying to understand the R's "environment" concept
however the underlying help files look quite technical to me. Can
experts here provide me some more intuitive ideas behind this concept
like, why it is there, what exactly it is doing in R's architecture
etc.?
I mainly need some non-technical intuitive explanation.
Thanks,
2011 Jul 08
2
Selecting subset of a given vector
Hi there, given a numeric vector, I can select numbers within a
specific range. However presently, I have something related but
different problem. Suppose I have a numeric vector. Now take an
arbitrary number. Goal to to chose a specific subset with a given
length, from that given vector, so that those chosen numbers are
centered around that given constant.
Here is one example:
### My original
2011 Mar 06
1
Writing Rd files
Hi all, I have created a package and now into writing it's help files.
However I am having problem on, how to put a 'new line' in any
statement of the help file? For example please consider following:
\title{
This is a new function and this function will calculate the mean.
}
However I want to write it is this way:
\title{
This is a new function & and,
this function will
2011 Feb 09
2
A question on Duplicating
Hello I am struggling to accomplice an idea which is as follows:
I have a vector say: a <- c("a", "b", "c", "a") and another: b <- c("m",
"n", "o", "m"). Length of those 2 vectors are essentially be same. Here task
is to check the duplicates in the vector 'a' and then to check whether any
duplicates are
2011 Jun 09
1
package.skeleton() does not create 'data' folder
Hi again, yesterday I mailed this query however I could not see this
on the mail list. Therefore, I am reposting it again.
I was using package.skeleton() function to create the
skeleton of my package in windows. Here is my attempt:
rm(list = ls())
setwd("F:/R_PackageBuild")
package.skeleton("trial1", namespace = TRUE, code_files =
"F:/R_PackageBuild/trial.r")
In
2015 Mar 25
2
Bind9 Flat to Bind9 DLZ
Hi Team,
Samba Version = 4.2
Bind = 9.10 with dlz
Not able to to view replication.(samba-tool drs showrepl)
[root at dc2]# samba-tool drs showrepl (want to highlight the name which is
using to connect)
ERROR(<class 'samba.drs_utils.drsException'>): DRS connection to
*dc2.ik.lan.mum* failed - drsException: DRS connection to dc2.ik.lan.mum
failed: (-1073741772, 'The
2009 Oct 28
7
Scripting help please....
Need a scripting help to sort out a list and list all the duplicate lines.
My data looks somethings like this
host6:dev406mum.dd.mum.test.com:22:11:11:no
host7:dev258mum.dd.mum.test.com:36:17:19:no
host7:dev258mum.dd.mum.test.com:36:17:19:no
host17:dev258mum.dd.mum.test.com:31:17:19:no
host12:dev258mum.dd.mum.test.com:41:17:19:no
host2:dev258mum.dd.mum.test.com:36:17:19:no
2010 Jun 04
1
Creating a maxtrix from "conditional prints"
Hi guys :)
I'm dealing with this problem, perhaps conceptually not that complex, but
still - I'm stuck.
Two columns, values 1<x<10, only integers. I want to check when the first
column's index is identical to the second's (and vice versa). If that's
true, I want to add a further column with value 1 (if true) or NA (if
false).
Thus, I obtain 100 matrices (for each
2008 Oct 20
3
valid users and file permissions
Hi people,
I'd like to understand valid users and file permissions better. I have a
share which is not behaving as I expect.
[family]
path = /home/shares/family
create mask = 0664
directory mask = 0775
force group = parental
guest ok = No
valid users = @parental, @family
writeable = Yes
in Group parental are mum & dad; in group family are mum, dad and offspring.
With file permissions
2003 Jul 01
1
crossed random effects
Hi,
I have a data set on germination and plant growth with
the following variables:
dataset=fm
mass (response)
sub (fixed effect)
moist (fixed effect)
pop (fixed effect)
mum (random effect nested within population)
iheight (covariate)
plot (random effect- whole plot factor for split-plot
design).
I want to see if moist or sub interacts with mum for
any of the pops, but I am getting an error
2011 Jul 14
1
Creating package Vignette
Hi all, I was trying to create some vignette files for my newly
developed package, however wondering whether there could be any
simpler way to do so. In writing R extension it is advised to go
through Sweave route, however I have already got a big pdf file and
want to use this as package vignette.
So far I have manually created the inst/doc folder in the main package
skeleton, and put that file
2015 Mar 26
2
Bind9 Flat to Bind9 DLZ
yes i realized that there is something wrong with BIND9_FLATFILE while encountering with samba_upgradedns -h which doesn't show BIND9_FLATFILE
Any help on*drs repl* not working i think it is pointing to wrong FQDN how do i correct that ?
> >/ Not able to to view replication.(samba-tool drs showrepl)
> />/
> />/
> />/ [root at dc2
2007 Jul 21
10
Best and easiest soft phone for my Dad..
Hi,
Here is the situation.. My Dad is working on contract in overseas.. He
has internet access in his hotel.. He wants to be able to talk to my Mum
but the calls are expensive..
I have an asterisk box setup for my business and it has a public IP
etc.. My Mum has access to a working phone extension on this box..
I got my Dad to install X-Lite but for some reason it won't register and
2010 May 31
1
"Folder specified is currently mapped using a different user name and password" error
I am running Samba 3.0.33 on a linux box on my home office LAN.
smb.conf has this share set up:
[homes]
comment = Home Directories
browseable = yes
read only = no
writable = yes
create mode = 0750
For each person in the house we map drives in their Windows 7 PCs to
the appropriate share name - eg \\server\mum, \\server\dad,
\\server\child1 etc
The problem
2012 Dec 17
3
How to test whether is.element() returns only TRUE's
Hi,
How can I test, whether all the values that is.element() -function returns are TRUE's
Eg.
> (is.element(c(1,4,2),c(1,2,3)))
[1] TRUE FALSE TRUE
This doesn't work:
> (is.element(c(1,4,2),c(1,2,3)))==TRUE
[1] TRUE FALSE TRUE
Best,
Atte Tenkanen, FT, MuM
http://users.utu.fi/attenka/
2015 Mar 25
0
Bind9 Flat to Bind9 DLZ
On 25/03/15 16:50, VIKAS wrote:
> Hi Team,
>
> Samba Version = 4.2
>
> Bind = 9.10 with dlz
>
>
> Not able to to view replication.(samba-tool drs showrepl)
>
>
> [root at dc2]# samba-tool drs showrepl (want to highlight the name which is
> using to connect)
>
> ERROR(<class 'samba.drs_utils.drsException'>): DRS connection to
>
2011 Jun 23
1
Class not found when search in .onLoad
Hi,
I am facing with a strange behaviour of isClass and extends when these
are called in .onLoad in both R 2.12.1 and R 2.13.0. This is preventing
my package from doing some object initializations at a proper place
(i.e. in .onLoad).
Suppose one defines two S4 classes in a package, and that one needs to
check the inheritance between these two when loading the package (e.g.
to validate slots