similar to: building a "simple" R package

Displaying 20 results from an estimated 4000 matches similar to: "building a "simple" R package"

2003 Dec 17
1
Building packages in XP
R users, I recently upgraded (?) to Windows XP from 2000. I am trying to build an R package. I have done this many times on my old system and I am not sure why it is not working in XP. To build the package I call a bat file that specifies all the necessary paths -- but the "build" file (which appears to be a perl script) is looking for a "src" subdirectory in the src
2004 Jan 05
2
build R package on winXP
Hello, I wrote an R function and want to build an R package on winXP. I have set my path:C:\bin;C:\MinGW\bin;C:\Perl\bin\;C:\Tcl\bin;C:\texmf\miktex\bin;C:\Program Files\R\rw1081\bin; I tried to run "Rcmd build --help" but failed. Under C:\WINDOWS\System32\cmd.exe, I got the error message: Please set TMPDIR to a valid temporary directory. Under Cygwin, I got the error message:
2004 Nov 15
1
installing knncat package
Hi all, I am wondering if anyone has problem installing 'knncat' package. I tried to install using 'Rcmd INSTALL knncat_1.1.1.tar.gz', error message appeared. I attached the message in the end. I allso tried to install from RGui, but it was not listed. Thanks in advance. Regards, jenny ---------- Making package knncat ------------ adding build stamp to DESCRIPTION
2004 Feb 17
2
interfacing C++ using .Call
Hi folks, I apologise if this is in the documentation somewhere, but I can't seem to find it. I also did a search of CRAN without any success. I'm using R-1.8.1 (pre-compiled) on Windows 2000 with Rtools and mingw 2.0.0 (which includes gcc/g++ 3.2). I'm trying to link some C++ code from another application to R using the .Call interface and am experiencing some problems. I was
2004 Feb 17
1
RCMD SHLIB == Couldn't reserve space for cygwin's heap, Win32 ?
I've been trying to create/load/call a dll from R-1.8.1 on Windows without much success. I've been able to at least load the library on FreeBSD (1.8.1). I've been able to perform this before using DLL that weren't created using RCMD SHLIB, but simply compiling under MS DevStudio. C:\optflikam>rcmd shlib --output=optflikam.dll as47.f as197.f flikam.c g77 -O2 -Wall -c as47.f
2004 Feb 17
1
RCMD SHLIB == Couldn't reserve space for cygwin's heap, Win32 ?
I've been trying to create/load/call a dll from R-1.8.1 on Windows without much success. I've been able to at least load the library on FreeBSD (1.8.1). I've been able to perform this before using DLL that weren't created using RCMD SHLIB, but simply compiling under MS DevStudio. C:\optflikam>rcmd shlib --output=optflikam.dll as47.f as197.f flikam.c g77 -O2 -Wall -c as47.f
2004 May 11
2
- making a Windows library from Unix source code
Hi All, I'm using R1.8.1 on Windows XP. I'm having trouble producing an R library from source code. A colleague has written the source code, in Unix. I've copied the source code across to Windows (with the help files, data files, description and index) and am trying to compile it into a library. I've "sourced" each of the *.r files and they appear to work.
2004 Feb 10
4
The ttest.c example in R under MS Windows
We are trying to compile and run the ttest.c example that comes with R (in C:\Program Files\R\rw1081\src\library\windlgs\src\ttest.c). After compiling it with MS Visual C++ we load the DLL with dyn.load. So far it seems good, but when we try to call it from R (after running C:\Program Files\R\rw1081\src\library\windlgs\R\windlgs.R) R crashes. We have tried changing the exports from DLL but have
2004 Feb 29
1
Rcmd SHLIB
Ok, I think I may have a path or permissions problem (below). Anyone know which settings I should check? When I use "Rcmd SHLIB <filename>" I get: C:\Program Files\R\rw1081\bin>Rcmd SHLIB info.diffusion.c process_begin: CreateProcess((null), dlltool -k --as as --dllname R.dll --def R. exp --output-lib libR.a, ...) failed. make (e=2): The system cannot find the file
2003 Jun 16
3
Constrained optimization
Greetings, R-Wizards: I'm trying to find an extremum subject to a nonlinear constraint. (Yes, I have perused the archives but have found nothing positive.) The details of the problem are these: In a paper published some years ago in Technometrics, ("Confidence bands for cumulative distribution functions of continuous random variables" Technometrics, 25, 77-86. 1983), Cheng and
2008 Jan 26
3
Which R version created a package?
Greetings, R-ians: I would like to know which version or R was used to create a given package. I think I remember seeing that topic discussed recently but cannot find it among my notes. Can anyone tell me how to determine which version of R created a package? Thanks. Charles Annis, P.E. <mailto:Charles.Annis@StatisticalEngineering.com> Charles.Annis@StatisticalEngineering.com
2008 Sep 23
4
gsub difficulty
Greetings R-ians: I know what doesn?t work but I don?t know why, nor how to remedy things. I have a character string containing "." which I want to replace with " " gsub(".", " ", file.label) replaces the every character with a blank. However gsub(".xls", " ", file.label) replaces ".xls" with a blank as expected. It appears
2006 Sep 29
3
control L to clear the Rgui screen in Windows
Greetings R-ians: Searching the Searchable Mail Archives I discovered that ctrl L will clear the Rgui screen, which is what I'd like to do from a print (or some similar) statement. Is there a mechanism to use the ctrl L clear-screen sequence in a script, or print statement? Thanks for your counsel. Charles Annis, P.E. Charles.Annis at StatisticalEngineering.com phone: 561-352-9699 eFax:?
2009 Aug 26
1
Scripting - sort of
Dear R-ians: I'm running R2.9.2 on a 6 year old Windows XP DELL with 2 Gig RAM and a 3MHz Pentium 4 chip. I've written a package using the User Menus Under Windows commands (winMenuAdd, etc). It works very well. I have 6 test cases and running any one of them requires many selections form the menus and some keyboard entry, and it takes me hours to exercise them all to see
2006 Mar 05
2
plotting partial deriviatives
Dear R Helpers: I am trying to annotate a plot. The following code snippet works, but it is kind of a kludge since it adds the partial derivative symbols after creating the plotmath frac(). Is there a more elegant way to write a partial derivative? dev.off() plot(NA, xlim=c(-3,3), ylim=c(0,1.6), xlab="", ylab="", tck=-0.015) text(1.6, 1, expression(paste("slope =
2006 Jul 09
4
string problems with "\\" (Windows)
Greetings, R-ians: I'm using R 2.3.1 on WindowsXP. I need to find the name of a file at the end of a sting that contains the path + file, with the problematic "\\" as separators. The string looks something like this: "C:\\Documents and Settings\\myName\\My Documents\\R Projects\\Project1\\file.name.csv" What I want is "file.name.csv" Currently I use the
2006 Jul 09
4
string problems with "\\" (Windows)
Greetings, R-ians: I'm using R 2.3.1 on WindowsXP. I need to find the name of a file at the end of a sting that contains the path + file, with the problematic "\\" as separators. The string looks something like this: "C:\\Documents and Settings\\myName\\My Documents\\R Projects\\Project1\\file.name.csv" What I want is "file.name.csv" Currently I use the
2008 Aug 14
5
help with my sloppy syntax
R-ians: After some effort I coerced my code to do what I want but my syntax is a kludge. Suggestions on more elegant syntax? par <- NIM.results$par do.call("Draw.NIM.POD.curve", list(par[1], par[2], par[3], par[4], par[5], a.hat.decision, .... et cetera ... It seems that I should be able to avoid defining the variable "par" and then specifying each of its elements,
2008 Apr 03
1
help with R semantics
Greetings: I'm running R2.6.2 on a WinXP DELL box with 2 gig RAM. I have created a new glm link function to be used with family = binomial. The function works (although any suggested improvements would be welcome), logit.FC <- function(POD.floor = 0, POD.ceiling =1) { if (POD.floor < 0 | POD.floor > 1) stop ("POD.floor must be between zero and one.") if
2009 May 02
1
compiled help pages
Greetings: This should be easy but it isn't. I have a home-brew package that works fine, with compiled html help pages, all 150 of them. I want to make a similar package but not from scratch since only a half-dozen routines are changed. So I created a new directory, copied the old package into it and changed the name to newSTUFF. I changed the names of all help pages too, as weill