Displaying 20 results from an estimated 600 matches similar to: "R 2.7 package.skeleton"
2009 Sep 09
1
Package that does not work until I re write the exactly the same code
Hi the list,
I am writing a package in S4 and I do not manage to understand a bug.
The "R CMD check" and the "R CMD build" both work. Here is links to the
package (not on CRAN yet for the raison that I explain bellow):
http://christophe.genolini.free.fr/aTelecharger/kml_0.5.zip
http://christophe.genolini.free.fr/aTelecharger/kml_0.5.tar.gz
Then I install the package and I
2008 Aug 07
1
package.skeleton does invalide regular name, bis... (PR#12020)
Hi the list,
I guess I find an other bug (the first one is at the end off this mail)
in package.skeleton. It occurs when we give as code_file some file that
are not in the current directories.
If we give a single file to code_file (like code_file=3D"riri/fifi.R"),
it does not reconize fifi.R as a regular name and change it to
riri/zfifi.R
If we give several file to code_file (like
2007 Jul 17
4
[R-sig-DB] RODBC on Oracle DB
essai <- odbcConnect("ORESTE_prod", uid="osis_r", pwd="12miss15" ,case="oracle")
> sqlTables(essai)$ORESTE
...
1315 <NA> ORESTE S_PROFESSIONS_OLD TABLE <NA>
1316 <NA> ORESTE S_PROVENANCES TABLE <NA>
1317 <NA> ORESTE
2012 Nov 16
2
How to create as.numeric.xxx
I would like to create a function to convert data based on a class using
as.numeric
Similarly, using a plot, I do:
plot.essai <- function(x, ...) {return(x*2)}
d <- 10
class(d) <- "essai"
plot(d)
It works:
[1] 20
attr(,"class")
[1] "essai"
Now same with as.numeric:
as.numeric.essai <- function(x, ...) {return(x*2)}
as.numeric(d)
It does not work:
2012 Aug 08
2
Exec resource don't write file after the command
Hi all,
I''m trying to have the exec resource write a file after the command but it
don''t.
here is the resource declaration
class gepet {
notify { ''begin'':}
file { ''/root/essai/html'':
ensure => present,
content => "Wrote By Yves Nton",
notify => Exec[''test''],
}
exec { ''test'':
path
2011 Dec 02
2
Problem with loop
Hi,
I try to build a loop difficultly.
I have in a folder called Matrices several files (.csv) called Mat2002273,
Mat2002274 to Mat2002361.
I want to calculate for each file the mean of the column called Pixelvalues.
I try this code but as result, I have this message: Mat2002273 not found
2004 Mar 31
3
scan seems to modify the data
Hello list,
I have used scan function to import data into R. I have done some analysis
and find strange results. I have found my problem : when importing data
with scan, this can slightly modify the data :
> write(c(0.251,3.399,-0.481,0.266),"essai.txt")
> scan("essai.txt")
Read 4 items
[1] 0.251 3.399 -0.481 0.266
> print(scan("essai.txt"),17)
Read
2005 Dec 27
2
Create pdf and postscript files
Hello,
I would like to learn how to create a pdf and a postscript file from an R
graphic.
For example, I tried :
plot(1) # example
pdf("H:/Perso/essai.pdf")
postscript("H:/Perso/essai.ps")
But the pdf document created is empty.
How do these functions work ?
Thank you very much.
--
David Hajage
Interne de santé publique
Institut Curie
2009 Jun 18
2
Argument as.integer(NA) to a function C
Hi the list,
I am writing a R function that call a C function. The C function needs
integers but I do not manage to give a NA integer as argument :
--- C code ---
void essai(int *t){
Rprintf("\nT0=%i T1=%i T2=%i T3=%i",t[0],t[1],t[2],t[3]);
}
--- R ---
boub <- c(1,2,3,4)
.C("pour",as.integer(boub),NAOK=TRUE)
# T0=1 T1=2 T2=3 T3=4[[1]]
# [1] 1 2 3 4
boub <-
2008 Mar 30
1
package.skeleton.S4
Hi the devel list.
I am adapting the package.skeleton to S4 classes and methods
I would have been very proud to post a new working function on this list.
Unfortunately, I do not manage to solve all the problems. Mainly
- sys.source does not compile a file with setClass
- dumpMethod does not exists yet
In the following code, thise two problems are notified by a line
#################
Still
2006 Nov 11
1
Install bioconductor
Hello useRs,
I'm trying to install bioconductor on ubuntu edgy eft and R 2.4.0.
I have some error messages during installation, in particular for the
package "affy" :
"Error: package 'affy' required by 'makecdfenv' could not be found"
I have tryed to install 'makecdfenv' with the command :
getBioC("makecdfenv")
But I have this message
2008 Jul 15
1
package.skeleton does invalide regular name...
Hi the list,
I am using package.skeleton on a file that has a very classic name, but
package.skeleton detect it as a invalid name :
--- 8< -------
package.skeleton(name="packClassicBis",code_files="./packClassic/R/progClassic.R")
Cr?ation des r?pertoires...
Cr?ation de DESCRIPTION...
Cr?ation de 'Read-and-delete-me'...
Recopiage des fichiers de code...
Cr?ation
2011 Dec 16
2
package.skeleton()
Hi--
I'm creating an R package, I've read through "Writing R Extensions" and the
package.skeleton() R page-- and I'm still running into a little confusion.
I would greatly appreciate any advice you can provide.
Where do I run my following line of code from?:
> package.skeleton(name = "a", code_files = "EsetObject.r"
I'm currently running it from
2012 Jan 12
2
defmacro installation issue
Hi everybody,
I want to use macro in my R code. But defmacro was not in my libraries. So I
installed it :
> install.packages("gtools")
Installing package(s) into ?C:/Program Files/R/R-2.13.2/library?
(as ?lib? is unspecified)
essai de l'URL
'http://cran.cict.fr/bin/windows/contrib/2.13/gtools_2.6.2.zip'
Content type 'application/zip' length 102500 bytes (100 Kb)
2006 Dec 22
2
Pb with R.matlab
Hello,
I have problems running the R.matlab package. I work with R 2.3.1, under
windows (using the Rgui). It seems that, even after loading the package,
the "simple" functions such as writeMat() or readMat() are not recognized.
For example, the following script leads to an error:
> install.packages("R.matlab")
--- Please select a CRAN mirror for use in this session ---
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
2009 Feb 28
1
gpxelinux and dhcp
Hello,
I'm playing with gpxelinux, it's works but ...
In my dhcpd.conf I have the traditional:
option space gpxelinux;
option gpxelinux-encap-opts code 175 = encapsulate gpxelinux;
option gpxelinux.bus-id code 177 = string;
subnet 192.168.0.0 netmask 255.255.255.0 {
host essai {
hardware ethernet 00:11:22:33:44:55;
fixed-address 192.168.0.62;
if not exist
2002 Sep 30
1
Password authentication in a script
Greetings,
Here is my configuration: a rsync linux server, a rsync windows client.
I would like to run a rsync from windows in a .bat file.
The problem is that a password prompt is always shown.
I have read the archives and the man pages: i have create a rsyncd.secret like this:
rsync:thePassword
Here is my rsyncd.conf file:
[rsync]
path=/
uid=nobody
gid=nobody
auth users=rsync
secrets
2018 Mar 28
2
can not install package "matie"
Dear R-experts,
I can not install the package "matie". If somebody can tell me where the problem is.
> install.packages("matie")
Installing package into ?/Users/Caro/Library/R/3.3/library?
(as ?lib? is unspecified)
essai de l'URL 'https://cran.rstudio.com/bin/macosx/mavericks/contrib/3.3/matie_1.2.tgz'
Content type 'application/x-gzip' length 80151
2004 May 17
1
Problem with package SJava
Hello all,
I'm trying to run SJava package (0.65 modified downloaded from :
http://stats.math.uni-augsburg.de/iPlots/alpha/) on windows NT 2000 and R
1.8.01. I have also downloaded the PDF Calling R from Java and when I want
to execute the following code:
import org.omegahat.R.Java.*;
import java.io.*;
public class Essai{
public static void main (String [] args) {
REvaluator e = new