Re: [Rd] R 3.0, Rtools3.0,l Windows7 64-bit, and permission agony

2013-04-21 Thread steven mosher
Well, color me confused as heck. I've upgraded to R 3.0 so that I can bring my packages up to date, but the instructions surrounding Rtools30 are not a model of clarity. On Sun, Apr 21, 2013 at 4:04 PM, Gabor Grothendieck wrote: > On Sun, Apr 21, 2013 at 6:17 PM, Henrik Bengtsson > wrote: > >

Re: [Rd] Suggestion: Change default to download.file(..., mode="wb") ...instead of mode="w" with some bells and whistles

2012-09-05 Thread steven mosher
I would second this suggestion. On Wed, Aug 29, 2012 at 12:27 PM, Henrik Bengtsson wrote: > Hi, > > I keep seeing the problem where people are download binary files as > text (mode="w") when using R's download.file() for FTP/HTTP downloads. > It often results in unnecessary troubleshooting unti

Re: [Rd] Compressing data for package builds

2012-08-17 Thread steven mosher
I believe that was my boneheaded error.. checking now.. Yup Thanks guys! On Fri, Aug 17, 2012 at 3:01 AM, Uwe Ligges wrote: > > > On 17.08.2012 07:24, steven mosher wrote: > >> " R CMD build is how you preferably should be creating your package tar >> ball, so you

Re: [Rd] Compressing data for package builds

2012-08-16 Thread steven mosher
I wonder if I am missing a system file required to do the compression. On Thu, Aug 16, 2012 at 5:48 PM, Simon Urbanek wrote: > > On Aug 16, 2012, at 5:08 PM, steven mosher wrote: > > > Hi, > > > > I have two .rda files that I need to include in a package. I've plac

[Rd] Compressing data for package builds

2012-08-16 Thread steven mosher
Hi, I have two .rda files that I need to include in a package. I've placed them both in a data directory after save() the are around 150Kb each. When I try to check the package I get the following warning Warning: large data file(s) saved inefficiently: size ASCII compres

Re: [Rd] Encoding errors in Rd files

2012-07-25 Thread steven mosher
s for your help! Steve On Wed, Jul 25, 2012 at 1:04 AM, Duncan Murdoch wrote: > On 12-07-25 3:24 AM, steven mosher wrote: > >> Thank Dr. Ripley. >> >> When I read the instructions >> " If the DESCRIPTION file is not entirely in ASCII it should contain an ‘ &

Re: [Rd] Encoding errors in Rd files

2012-07-25 Thread steven mosher
'Lac Kinogami' in object 'modpoll' I get "unknown" for all the items. So, If I understand you I should take this dataframe, change the encoding to UTF-8 Sorry for being so dense On Tue, Jul 24, 2012 at 1:46 PM, Prof Brian Ripley wrote: > On 24/07/2012 21:08, stev

[Rd] Encoding errors in Rd files

2012-07-24 Thread steven mosher
Well, I'm working on project trying to bring back an old package last published on R 1.9 back to life. I'm almost there but I am getting killed by an encoding error in the Rd files After reading the manual, I decided to try UTF-8. Mostly because I could spell it. ha. That got me a bit closer but

Re: [Rd] creating a package in R

2012-04-29 Thread steven mosher
If you want simple step by step instructions for Windows, try this http://stevemosher.wordpress.com/ten-steps-to-building-an-r-package-under-windows/ On Sun, Apr 29, 2012 at 7:08 AM, nossa wrote: > Please give me the necessary links that permits me to create my own > package > inR > > -- > Vi

Re: [Rd] weird error

2011-10-31 Thread steven mosher
Thanks, found it. never say you only changed one thing. For reference for other folks. There was an errant script in my R subdir for the package that script had a library command for the package. hence the cyclical reference Steve On Mon, Oct 31, 2011 at 8:36 PM, steven mosher wrote: > I

[Rd] weird error

2011-10-31 Thread steven mosher
I was just rebuilding a package that has built before and I hit this error Error in loadNamespace(package, c(which.lib.loc, lib.loc), keep.source = keep.source) : cyclic name space dependency detected when loading 'GhcnDaily', already loading 'GhcnDaily' The package built just fine last revisi

Re: [Rd] "could not find function" after import

2011-09-23 Thread steven mosher
. Thanks for the explanation. Steve On Fri, Sep 23, 2011 at 11:44 AM, Duncan Murdoch wrote: > On 23/09/2011 12:57 PM, steven mosher wrote: >> >> Duncan >> >> I have a related question. >> >> I need one function from R.utils.  But R.utils depends on R.oo a

Re: [Rd] "could not find function" after import

2011-09-23 Thread steven mosher
Duncan I have a related question. I need one function from R.utils. But R.utils depends on R.oo and R.methodsS3. so I made R.util an import and then used importFrom() in the namespace. The package passed the "check". However when it came to use the function it had not been loaded? do I need

Re: [Rd] Importing from a package with dependencies

2011-09-10 Thread steven mosher
Disregard. I found the problem. A stray "require" statement I didnt find on the first pass through the code. On Sat, Sep 10, 2011 at 6:03 PM, steven mosher wrote: >  I needed to do a little cleanup on my packages ( before trying > Rd2Roxygen) and that involved > switching

[Rd] Importing from a package with dependencies

2011-09-10 Thread steven mosher
I needed to do a little cleanup on my packages ( before trying Rd2Roxygen) and that involved switching some packages from my Depends list to Imports. Specifically, I had a dependency on "R.utils", but since I only used one or two functions (gunzip ) I thought it best to importFrom("R.utils",gunz

Re: [Rd] Please explain your workflow from R code -> package -> R code -> package

2011-09-10 Thread steven mosher
Thanks, I was too lazy to even look for it. On Sat, Sep 10, 2011 at 9:31 AM, Joshua Ulrich wrote: > On Sat, Sep 10, 2011 at 11:23 AM, steven mosher > wrote: >> All I need now is a tool to go through the 4 packages I already >> created without Roxygen and  spit out sou

Re: [Rd] Please explain your workflow from R code -> package -> R code -> package

2011-09-10 Thread steven mosher
All I need now is a tool to go through the 4 packages I already created without Roxygen and spit out source files with the Roxygen comments in them... really lazy. On Fri, Sep 9, 2011 at 11:41 AM, Hadley Wickham wrote: >> | In other languages, I've seen to write the documentation inside the >

Re: [Rd] Creating package Vignette

2011-07-14 Thread steven mosher
Also useful if you want to do an FAQ On Thu, Jul 14, 2011 at 10:12 AM, Melissa Jane Hubisz wrote: > Another workaround is to create a "dummy" vignette which does nothing > but include the pdf file. Something like this: > vignette.Rnw: > > % \VignetteIndexEntry{vignette} > % \VignetteKeywords{k

Re: [Rd] Syntactically valid names

2011-07-05 Thread steven mosher
regexp approach is kinda ugly http://www.r-bloggers.com/testing-for-valid-variable-names/ On Tue, Jul 5, 2011 at 3:29 PM, Hadley Wickham wrote: > > I wouldn't expect so. The basic structure might be handled using a regexp > of sorts, but even that is tricky because of the "dot not followed by

Re: [Rd] First package submission to CRAN

2011-06-23 Thread steven mosher
Thanks. figured as much and submitted On Thu, Jun 23, 2011 at 10:16 AM, Sascha Vieweg wrote: > On 11-06-22 22:12, steven mosher wrote: > > I'm preparing to submit my first package to CRAN, thanks to the help of >> too many people to mention. >> > > [...] >

Re: [Rd] First package submission to CRAN

2011-06-23 Thread steven mosher
> > That is now deprecated Christophe. Recommended now is > > R CMD INSTALL --build > > to get a binary. See the recent thread with the subject > > Porting "unmaintained" packages to post R 2.10.0 era > > David Scott > > > Le 22 juin 2011 à 22:

Re: [Rd] First package submission to CRAN

2011-06-22 Thread steven mosher
you want > to get binaries. But you have to submit sources to the CRAN ftp server (and > not binary). So just run a R CMD build. > > C > > -- > Christophe Dutang > Ph.D. student at ISFA, Lyon, France > website: http://dutangc.free.fr > > Le 22 juin 2011 à 22:12, stev

[Rd] First package submission to CRAN

2011-06-22 Thread steven mosher
I'm preparing to submit my first package to CRAN, thanks to the help of too many people to mention. I've built and checked the package on Windows ( making a zip) and my path points to the 64 bit version of R. Everything builds and checks and the final warnings have been fixed. My package is pure