[R-pkg-devel] CRAN pretest archived because of 2 NOTEs

2018-04-17 Thread Gertjan van den Burg
Dear all,

My CRAN submission doesn't pass the pre-tests and gets archived. I've
emailed cran-submissi...@r-project.org explaining that these are false
positives, but since I haven't heard back in 10 days I don't think anyone
read that. Same thing for the submission comments (which also explained it).

The first note is:

* checking CRAN incoming feasibility ... NOTE
Maintainer: ‘Gertjan van den Burg ’

New submission

Possibly mis-spelled words in DESCRIPTION:
  GenSVM (8:18, 10:61, 15:2, 16:26, 19:11)
  Multiclass (4:22)
  SVMs (14:25, 15:42)
  misclassifications (11:49)
  multiclass (8:53, 14:14, 15:31)


These words are not mis-spelled, so this is a false positive.

The second note is:

* checking compiled code ... NOTE
File ‘gensvm/libs/gensvm_wrapper.so’:
  Found ‘rand’, possibly from ‘rand’ (C)
Objects: ‘gensvm/src/gensvm_cv_util.o’, ‘gensvm/src/gensvm_init.o’,
  ‘gensvm/lib/libgensvm.a’
  Found ‘srand’, possibly from ‘srand’ (C)
Objects: ‘gensvm/src/gensvm_train.o’, ‘gensvm/lib/libgensvm.a’

Compiled code should not call entry points which might terminate R nor
write to stdout/stderr instead of to the console, nor use Fortran I/O
nor system RNGs.

See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual.


This is probably why the package is rejected. I have a valid use case for
using rand() and srand(): I'm trying to maintain compatibility of this
package with the corresponding Python package. By using rand en srand users
can reproduce models in both languages.

Does anyone have any ideas on how I can get the package excepted to CRAN?

Thanks,

Gertjan van den Burg

[[alternative HTML version deleted]]

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel


Re: [R-pkg-devel] vignette via devtools: sometimes found, sometimes not (same package)

2018-04-17 Thread Thierry Onkelinx
Dear Alex,

Have a look at drat
(http://eddelbuettel.github.io/drat/DratForPackageAuthors.html). This
makes it easier to distribute prepackaged R packages (including When
you uploaded a new version, then the student would only have to do
drat::addRepo("your_repo") and then install.pakages("LM2GLMM") or
update.packages()

Best regards,

ir. Thierry Onkelinx
Statisticus / Statistician

Vlaamse Overheid / Government of Flanders
INSTITUUT VOOR NATUUR- EN BOSONDERZOEK / RESEARCH INSTITUTE FOR NATURE
AND FOREST
Team Biometrie & Kwaliteitszorg / Team Biometrics & Quality Assurance
thierry.onkel...@inbo.be
Havenlaan 88 bus 73, 1000 Brussel
www.inbo.be

///
To call in the statistician after the experiment is done may be no
more than asking him to perform a post-mortem examination: he may be
able to say what the experiment died of. ~ Sir Ronald Aylmer Fisher
The plural of anecdote is not data. ~ Roger Brinner
The combination of some data and an aching desire for an answer does
not ensure that a reasonable answer can be extracted from a given body
of data. ~ John Tukey
///




2018-04-16 19:38 GMT+02:00 Alexandre Courtiol :
> Re,
>
> On 16 April 2018 at 17:35, Georgi Boshnakov <
> georgi.boshna...@manchester.ac.uk> wrote:
>
>> Hi,
>>
>> The problem is indeed difficult to debug but there are things that can be
>> done to narrow it down.
>>
>> 1. Are there 1/3 unlucky computers fixed? (I.e does the problem occur
>> always on the same computers) Also, do you really mean computer or user?
>>
>
> Yes, I mean computer, not user.
>
>>
>> 2. Are the students working under R studio? If so, does the same problem
>> appear if the same procedure is run outside R studio.
>>
>
> I will try tomorrow (but from memory I think the answer will be yes).
>
>>
>> 3. Further to 2.,  You mention development mode - do (some) students also
>> have a copy of your repository? This may be aproblem if they don't update
>> it too.
>>
>
> No, only me has the devel version.
>
>>
>> 4. What happens if R is restarted?
>
>
> I will try tomorrow (but I think the answer will be nothing).
>
>
>> 5. It may be worth checking .Rprofle and similar for the concerned
>> computers (or users, see 1.)
>>
>
> I will try as well but most had a fresh install and did not mess with
> settings.
>
>>
>> Hope this is of some help.
>>
>
> I will look at all this and also gather the session infos as Ben suggested.
> I think I know how to proceed to get to the bottom of that, but I was just
> hoping that the problem was already well known and the answer as well...
> If it is for anyone, please reply. Otherwise, I will investigate.
> Thanks to everyone.
> Alex
>
>
>>
>>
>>  Georgi Boshnakov
>>
>>
>> 
>> From: R-package-devel [r-package-devel-boun...@r-project.org] on behalf
>> of Alexandre Courtiol [alexandre.court...@gmail.com]
>> Sent: 16 April 2018 14:40
>> To: List r-package-devel
>> Subject: [R-pkg-devel] vignette via devtools: sometimes found, sometimes
>> not (same package)
>>
>> Dear all,
>> I am teaching a class and for that I created a R package that mostly
>> contains vignettes (the slides of the course).
>> I host the package on GitHub because I want the students to download every
>> day the latest version of the package.
>> Building the vignettes takes a couple of hours so I pre-build the vignettes
>> using devtools::build_vignettes before pushing my updates to GitHub.
>> The student install the package using
>> devtools::install_github("courtiol/LM2GLMM").
>> Then, they do library(LM2GLMM) and browseVignettes(package = "LM2GLMM")...
>>
>> ... and that works on 2/3 of the computers, for the others it says
>> vignettes not found.
>>
>> Any idea why and what can I do to make it 100% success?
>> Of course on my laptop it works, so I cannot investigate.
>> Also, since they all use different versions of R, devtools or OS... I would
>> like to know the one thing that must be changed if it comes from that (but
>> I am not sure it does).
>>
>> I have added a back up function that works for the 1/3 of unfortunate
>> students:
>>
>> get_vignettes <- function() {
>>   utils::browseURL(paste0(find.package("LM2GLMM"), "/doc/")) ## for
>> installed
>>   utils::browseURL(paste0(find.package("LM2GLMM"), "/inst/doc/")) ## for
>> development
>>   return(invisible(NULL))
>> }
>>
>> This functions opens de vignette folder and that shows that all the
>> students actually have the html files installed correctly. But it is ugly
>> because then they have to find the good html file and so forth, so I would
>> rather have a better solution.
>>
>> Many thanks,
>>
>> Alex
>>
>> --
>> Alexandre Courtiol
>>
>> http://sites.google.com/site/alexandrecourtiol/home
>>
>> *"Science is the belief in the ignorance of experts"*, R. Feynman
>>
>> [[alternative HTML version deleted]