search for: mypack

Displaying 12 results from an estimated 12 matches for "mypack".

2008 Mar 30
2
tests Rin Rout
...rumour (!) say that is it possible to prepare some tests for checking our code using .Rin and .Rout. It seems to be a very good practice, but I did not manage to find information on it. So does someone know how it works ? What are we suppose to write in Rin ? More precisely : - I have a package myPack.r in directories ~/myR/myPack/R/ - I create the directory ~/myR/myPack/tests myPack.r is : `f1` <- function(x){cat("\nXXX F1 = ",x,"XXX\n")} `f2` <- function(x){cat("\nXXX F2 = ",f1(x^2),"XXX\n")} What am I suppose to do to test it? Create myPack.Ri...
2011 Sep 15
1
how to install a locally built package
Hello useRs, I am trying to put my funcs in a package to avoid clutter in my workspace as the funcs are now in .Rprofile. All plain R code no compilations. Using win XP with a full cygwin install and R2.12 I first did package.skeleton("mypack",list="getdfv", namespace=T) # just a single func which created a folder with the required stuff in it. Calling R CMD build creates a tar.gz file with warnings about DOS paths. Trying to install from the R GUI complains > install.packages("mypack",repos="C:/Temp/m...
2003 Sep 16
1
package documentation
Dear all, I writing my first package and everything seems to work (at least up to now) However when I try to build documentation (.dvi or .pdf), using Rcmd Rd2dvi.sh --pdf mypack.Rd I get a mypack.pdf whose title is "R documentation of mypack.Rd" instead of "The mypack package" as it should be, is it right? Also Version, Title, ....License, namely info from the DESCRIPTION file, are missing on the first page. Where is the problem? Many thanks, vito
2012 Dec 21
1
Rterm does not load personal library
Greetings, I am trying to run a short script from a shell: c:\projects\hell>Rscript --default-packages=mypack X:/4Stephen/commit/curve.R > X:/4Stephen/commit/run1.out Loading required package: utils Warning message: package 'RODBC' was built under R version 2.12.2 Error: could not find function "normalize" Execution halted Warning message: closing unused RODBC handle 1 function '...
2005 Jan 04
1
Difference between "R CMD build --binary" and "R CMD INSTALL --build"
As the title suggests, when building R packages on Windows, what is the difference between: R CMD build --binary mypack And R CMD INSTALL --build mypack ?? The former is suggested by my previous notes and seems to work, and the latter is suggested by http://www.biostat.jhsph.edu/~kbroman/Rintro/Rwinpack.html, and also seems to work. Thanks in advance Mick
2008 Mar 30
4
tests Rin and Rout
...s of packages using tests, look at source packages on CRAN. > Run the tests on them (using R CMD check), and see what gets produced. > Do you have the name of a package that use it ? I try the 10 first package, and 10 other at random, but none of them use tests... >>> Create tests/myPack.R with those lines in it plus lines to actually >>> run the code. >> Does it mean that each time I change the code, I will have to change >> it twice, once in R/ and once in tests/ > > There shouldn't be any duplication. Just put tests in the tests > directory....
2009 Jun 29
1
R CMD build for windows package from linux
Hi, exist any way to create a windows installable package from a Linux R installation ?? I try R CMD build --binary --use-zip MyPack But generate a tar.gz file. Thanks in advance
2013 Aug 06
1
Error in building pdf manual with Rtools
...ersion 3.1.0.1936) on Windows 8 (64-bit). I am also aware of the inconsolata issue posted in the forum (https://stat.ethz.ch/pipermail/r-devel/2013-June/066850.html), and then I have installed the patched version of R-3.0.1. However I still have some errors with the following message: R CMD Rd2pdf mypack Hmm ... looks like a package Converting Rd files to LaTeX .... Creating pdf output from LaTeX ... Warning: running command '"C:\PROGRA~1\MIKTEX~1.9\miktex\bin\x64\texi2dvi.exe" --pdf "Rd2.tex"  -I "C:/PROGRA~1/R/R-30~1.1PA/share/texmf/tex/latex" -I "C:/PROG RA...
2008 Mar 30
1
package.skeleton.S4
...TRUE)}else{} if (length(list.files(data_dir)) == 0){unlink(data_dir, recursive = TRUE)}else{} message("Done.") message(gettextf("Further steps are described in '%s'.",file.path(dir, "Read-and-delete-me")), domain = NA) } # Example # Save in myPack.r ---- 8< ---------------File myPack.r ----------------- `f1` <- function(x){cat("\nXXX F1 = ",x,"XXX\n")} `.f2` <- function(x){cat("\nXXX F2 = ",f1(x^2),"XXX\n")} # Save in myPackS4.r ---- 8< ---------------File myPackS4.r --------...
2013 May 02
0
Data in packages: save or write.table?
...myData1 <- data.frame(x=1:10) write.table(myData1,file="myData1.txt") myData2 <- data.frame(x=2:10) save(myData2,file="myData2.Rdata") --- 8< ---- Then R CMD check aks me to document myData1, but does not ask me to document myData2. In the R session, after 'library(myPack)', the data 'myData2' is automatically present in the session while myData1 require the use of data(myData1). Is that correct, or is there a bug in my code? Christophe -- View this message in context: http://r.789695.n4.nabble.com/Data-in-packages-save-or-write-table-tp4666061.html...
2007 May 22
0
Mix Dial, Chanspy and MixMonitor or Monitor
I have an application that requires I be able to dial into an asterisk box, then from there dial out to another user through a PSTN. I'd like to be able to both 1) record this call and 2) let another user dial in using something like ChanSpy to listen to the conversation. I can get this working by executing an auto-dial script to connect one end of a call to an outside Asterisk box which
2010 Jul 07
0
samba 3.4.8 solaris 10 no windows security tab
I recently upgraded our samba from version 3.0.13 to 3.4.8. I also changed from security=domain to security=ads with the upgrade. Doing some testing I've found out if a user does not have read access at a minimum on a file or directory either by owning the file, through primary or secondary groups or other permissions on solaris the windows security tab (right clicking on a file or directory