Skip to content
Back to formatted view

Raw Message

Message-ID: <CALEXWq1YAfMbPqUK3hDMJ8OD9mJotHk=vy0EqTB3nQ2FA-abwg@mail.gmail.com>
Date: 2018-02-26T15:31:15Z
From: IƱaki Ucar
Subject: [R-pkg-devel] vignette with third party software
In-Reply-To: <CALEXWq1tgFQi0cNQoAeKqva=LAb3x5fSkVMe2CPAwju1YbFcZQ@mail.gmail.com>

2018-02-26 16:16 GMT+01:00 I?aki ?car <i.ucar86 at gmail.com>:
> 2018-02-26 15:03 GMT+01:00 Dominik Leutnant <leutnant at fh-muenster.de>:
>> Dear all,
>>
>> We'd like to submit an update of the "swmmr" package to CRAN, which interfaces the rainfall runoff model SWMM from the US environmental protection agency.
>> The package also includes three vignettes which demonstrate how to run the external model from the R command line.
>> Within the vignettes, the locally installed SWMM model is executed. Of course, the model is not available on CRAN. My question therefore is:
>>
>> How can we pass the incoming checks although processing the vignettes would fail?
>
> If the size of the Example1.inp file is reasonable, you may include it
> under the inst directory and retrieve it as follows in your vignettes:
>
> inp_file <- system.file("Example1.inp", package="swmmr")

Let me add a couple more comments about this. In case you can include
the data file, this has the benefit that you can use it in your tests
too (I've seen that you simply skip_on_cran and skip_on_travis). Also,
I've seen that you write files in one vignette. Note that you should
use the tempdir() for that.

>
> Otherwise, you may set knitr::opts_chunk$set(eval=FALSE) in the first
> chunk for each vignette, so that your code is not executed and thus it
> won't fail.
>
>>
>> Thanks in advance!
>> Best,
>> Dominik
>>
>> Dominik Leutnant M.Sc.
>>
>
> I?aki

I?aki