davidgohel / ReporteRs

Note that ReporteRs has been removed from CRAN the 16th of July 2018 and is not maintained anymore. please migrate to officer.
245 stars 44 forks source link

ReporteRs as a package dependency raises an error #215

Closed md0u80c9 closed 7 years ago

md0u80c9 commented 7 years ago

Hi,

I'm trying to build a package which depends upon ReporteRs. If I include ReporteRs (>= 0.8.8) in imports in my description file, I'm getting the following error:

==> devtools::document(roclets=c('rd', 'collate', 'namespace'))

Updating ssnapreports documentation Loading ssnapreports Error in (function (dep_name, dep_ver = NA, dep_compare = NA) : Dependency package ReporteRs not available. Calls: suppressPackageStartupMessages ... -> load_all -> load_imports -> mapply -> Execution halted

Exited with status 1.

Conversely the command library ('ReporteRs') works fine, so I think the install has gone fine.

davidgohel commented 7 years ago

Hi

I am not able to reproduce that, sorry. You should have a look at packages that already imports ReporteRs.

nb: If possible, switch to package officer.

md0u80c9 commented 7 years ago

No problems. I'll switch to officer and see if I fare better. I notice looking briefly at it that the rJava dependency isn't there for officer so that in itself would be a blessing!

davidgohel commented 7 years ago

any URL where I could test your package?

md0u80c9 commented 7 years ago

Hi,

It's not anywhere downloadable at the minute. The tools I'm writing analyse national stroke data for publication on www.strokeaudit.org.

We plan to release the packages we have produced onto Github but I'm awaiting permission from HQIP to use the Mozilla license for them - you're more than welcome to look at them as soon as they get back to me (from my profile you'll see the empty project ready to go!)

davidgohel commented 7 years ago

OK, let me know when it will be available, I will see why you have that issue (or better use officer ;))

md0u80c9 commented 7 years ago

Yes thanks for that - I wasn't aware of officer! gdtools is a bit of a pain on the Mac in terms of install, but no rJava is a definite big bonus!

davidgohel commented 7 years ago

I know I know... When I will have more time, I will write a note about installing gdtools on mac.

md0u80c9 commented 7 years ago

Replaced this with officer (noting also today's release removes dependence on gdtools - thanks!). Works perfectly as expected within the package.