[Rd] R CMD CHECK doens't run configure when testing install?
I'm trying to get ready to submit a package to CRAN, but in order for the package to install on OS X, I need to temporarily set an environment variable. I put this in the 'configure' script, and 'R CMD INSTALL MyPackage' works fine, but when I do 'R CMD CHECK MyPackage', and it tests installation, the configure script doesn't run and consequently the installation fails. Should I be setting the variable another way? It passes all the other checks, and it will install outside of check, so could I just submit it as is? Thanks! __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] R CMD CHECK doens't run configure when testing install?
Please don't spam multiple lists! And follow the posting guide: you have not given the reproducible example asked for, there is no signature block Of course you could waste people's time by submitting a package that does not past R CMD check, but you are asked to follow a set of checks in 'Writing R Extensions' and the CRAN workers do not have unlimited patience On Thu, 28 Jul 2011, Alexander James Rickett wrote: I'm trying to get ready to submit a package to CRAN, but in order for the package to install on OS X, I need to temporarily set an environment variable. I put this in the 'configure' script, and 'R CMD INSTALL MyPackage' works fine, but when I do 'R CMD CHECK MyPackage', and it tests installation, the configure script doesn't run and consequently the installation fails. Should I be setting the variable another way? It passes all the other checks, and it will install outside of check, so could I just submit it as is? Thanks! __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- Brian D. Ripley, rip...@stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UKFax: +44 1865 272595 __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
[Rd] R DDD fortran
Is there an easy way to compile a packages's fortran so that it has the information for ddd or gdb to follow the lines of the code? I seem to remember seeing something about this, but I cannot find it in Writing R Extensions. (I see about Valgrind, debugging a segfault, and some other tricks, but what I really want is to follow the fortran logic.) Thanks for any pointers, Paul La version française suit le texte anglais. This email may contain privileged and/or confidential information, and the Bank of Canada does not waive any related rights. Any distribution, use, or copying of this email or the information it contains by other than the intended recipient is unauthorized. If you received this email in error please delete it immediately from your system and notify the sender promptly by email that you have done so. Le présent courriel peut contenir de l'information privilégiée ou confidentielle. La Banque du Canada ne renonce pas aux droits qui s'y rapportent. Toute diffusion, utilisation ou copie de ce courriel ou des renseignements qu'il contient par une personne autre que le ou les destinataires désignés est interdite. Si vous recevez ce courriel par erreur, veuillez le supprimer immédiatement et envoyer sans délai à l'expéditeur un message électronique pour l'aviser que vous avez éliminé de votre ordinateur toute copie du courriel reçu. [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
[Rd] [foreign] read.spss 'measure' attribute
In SPSS compatible datafiles, every variable has a property called 'Measure'. This attribute can be observed as the last column in 'variable view mode' when the dataset is opened in e.g. GNU PSPP. The property is not very important, but is used by many researchers to distinguish between 'Ordinal' and 'Nominal' variables; respectively ordered and unordered factors in R. The measure property does not seem to be extracted by the foreign::read.spss function. It would be nice if there would be a way to read this information, and add is as an attribute to every variable. A very useful feature (at least for me :-) would be to include an option in read.spss that variables which are currently converted to an R factor, will be converted to an ordered.factor when Measure equals 'Ordinal'. Or in pseudocode: After reading in the spss dataset and converting it to a data.frame: for var in data.frame: if ( class ( var ) == "factor" && Measure == "Ordinal" ) { class ( var ) <- c( "ordered", "factor" ) } Here a datafile to play with: download.file("http://www.stat.ucla.edu/~jeroen/files/1991GS.sav";, "1991GS.sav"); mydata <- read.spss("1991GS.sav", to.data.frame=T); sapply(mydata, is.ordered); Thanks. [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] R DDD fortran
$ grep FFLAGS /usr/lib/R/etc/Makefile add FFLAGS for gdb in this Makefile and reinstall your code. regards, daniel 2011/7/29 Paul Gilbert > Is there an easy way to compile a packages's fortran so that it has the > information for ddd or gdb to follow the lines of the code? I seem to > remember seeing something about this, but I cannot find it in Writing R > Extensions. (I see about Valgrind, debugging a segfault, and some other > tricks, but what I really want is to follow the fortran logic.) > > Thanks for any pointers, > Paul > > > > La version française suit le texte anglais. > > > > > This email may contain privileged and/or confidential information, and the > Bank of > Canada does not waive any related rights. Any distribution, use, or copying > of this > email or the information it contains by other than the intended recipient > is > unauthorized. If you received this email in error please delete it > immediately from > your system and notify the sender promptly by email that you have done so. > > > > > Le présent courriel peut contenir de l'information privilégiée ou > confidentielle. > La Banque du Canada ne renonce pas aux droits qui s'y rapportent. Toute > diffusion, > utilisation ou copie de ce courriel ou des renseignements qu'il contient > par une > personne autre que le ou les destinataires désignés est interdite. Si vous > recevez > ce courriel par erreur, veuillez le supprimer immédiatement et envoyer sans > délai à > l'expéditeur un message électronique pour l'aviser que vous avez éliminé de > votre > ordinateur toute copie du courriel reçu. > >[[alternative HTML version deleted]] > > > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel > > [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] R DDD fortran
On 29/07/2011 11:41 AM, Paul Gilbert wrote: Is there an easy way to compile a packages's fortran so that it has the information for ddd or gdb to follow the lines of the code? I seem to remember seeing something about this, but I cannot find it in Writing R Extensions. (I see about Valgrind, debugging a segfault, and some other tricks, but what I really want is to follow the fortran logic.) On Windows, you set the environment variable DEBUG to T before compiling. I believe that's the default on non-Windows platforms, but I imagine there are exceptions (perhaps all of them!) Duncan Murdoch Thanks for any pointers, Paul La version française suit le texte anglais. This email may contain privileged and/or confidential information, and the Bank of Canada does not waive any related rights. Any distribution, use, or copying of this email or the information it contains by other than the intended recipient is unauthorized. If you received this email in error please delete it immediately from your system and notify the sender promptly by email that you have done so. Le présent courriel peut contenir de l'information privilégiée ou confidentielle. La Banque du Canada ne renonce pas aux droits qui s'y rapportent. Toute diffusion, utilisation ou copie de ce courriel ou des renseignements qu'il contient par une personne autre que le ou les destinataires désignés est interdite. Si vous recevez ce courriel par erreur, veuillez le supprimer immédiatement et envoyer sans délai à l'expéditeur un message électronique pour l'aviser que vous avez éliminé de votre ordinateur toute copie du courriel reçu. [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
[Rd] Front ends handling help.search() results?
Which front ends process the help.search() results to produce nice clickable lists, instead of the simple text display that's the default? I know the R.app gui on Mac OS does; are there others? I'm asking because one of the decisions made when R Core met in Vienna was to allow vignettes to be returned as results of help.search(). All of those front ends will need to be able to handle this. Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
[Rd] package encoding warning
Dear list, I'd like to get rid off a couple of warnings that have appeared in checking my package on CRAN (I did not find them on my local machine before submission). What puzzles me is that different platforms return different warnings, only one of which I recognise as my obvious mistake. The check results are at http://cran.r-project.org/web/checks/check_results_planar.html r-devel-linux-x86_64-gcc-fedora complains about unused variable in c++ code; this I understand as my mistake, I'll fix it. r-patched-windows-ix86+x86_64 is happy, no warning r-release-macosx-ix86 checking examples ... WARNING checking a package with encoding 'UTF-8' in an ASCII locale This one really puzzles me: I have a Encoding: UTF-8 directive in DESCRIPTION, precisely because I thought it would take care of encoding issues such as with my surname. What does this mean, and what should I do about it? Similarly, r-oldrel-macosx-ix86 checking whether package 'planar' can be installed ... WARNING Found the following significant warnings: Warning: 'DESCRIPTION' file has 'Encoding' field and re-encoding is not possible has me perplexed. Best regards, baptiste __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] package encoding warning
On Sat, 30 Jul 2011, baptiste auguie wrote: Dear list, I'd like to get rid off a couple of warnings that have appeared in checking my package on CRAN (I did not find them on my local machine before submission). What puzzles me is that different platforms return different warnings, only one of which I recognise as my obvious mistake. The check results are at http://cran.r-project.org/web/checks/check_results_planar.html r-devel-linux-x86_64-gcc-fedora complains about unused variable in c++ code; this I understand as my mistake, I'll fix it. r-patched-windows-ix86+x86_64 is happy, no warning r-release-macosx-ix86 checking examples ... WARNING checking a package with encoding 'UTF-8' in an ASCII locale This one really puzzles me: I have a Encoding: UTF-8 directive in DESCRIPTION, precisely because I thought it would take care of encoding issues such as with my surname. Your 'thought' was unfounded: please re-read the relevant sections of the R manuals. What does this mean, and what should I do about it? It means that your package cannot be checked correctly in that locale. You can avoid it by following the recommendations to use only ASCII, as you did in this message (or at least, it was ASCII by the time it reached me). Similarly, r-oldrel-macosx-ix86 checking whether package 'planar' can be installed ... WARNING Found the following significant warnings: Warning: 'DESCRIPTION' file has 'Encoding' field and re-encoding is not possible has me perplexed. Same: non-ASCII UTF-8 strings cannot be represented in the C (aka ASCII) locale. Now, I think it is a mistake to be checking in the C locale on Mac OS X as no end user will deliberately be using it, but that is the default for batch use on many OSes. *But* the same encoding issues for European names will occur in, say, the Japanese Windows locale. Best regards, baptiste __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- Brian D. Ripley, rip...@stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UKFax: +44 1865 272595 __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel