Open WilfridSKendall opened 6 years ago
OK, I think I forgot something which I have now re-learned. I needed to look at branch tla_wp2_analysis
not travis_test
! (See first sentence of section "Getting the detectorchecker package".) If I do this then I still get some warnings when testing, but code appears to be passing tests now.
I spot two issues:
"Consider adding
importFrom("grDevices", "dev.off", "jpeg", "pdf")
importFrom("graphics", "arrows", "image", "par", "plot", "points", "title")
importFrom("stats", "binomial", "chisq.test", "density", "glm")
to your NAMESPACE
file."
(not yet sure how to do above: roxygen2
overwrites it so I'd need to change something else!)
"Warning message:
orientdist_vec.Rd
is missing name/title. Skipping"
I'm having some trouble setting up the
detectorchecker
package! No doubt this is due to my failure to understandR
well enough. On the other hand perhaps it is useful to figure out a way to make this happen. here is what I do so far:Installing
R
3.5.Install
R
3.5 by adding the linedeb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/
to the end of /etc/apt/sources.list.Now install
R3.5
and various things from command line. (Not all of these may be required!)sudo apt remove --purge r-base
sudo apt autoremove
sudo apt update
sudo apt install -y r-base
sudo apt install devscripts liblapack-doc-man liblapack-doc liblzma-doc
sudo apt install ncurses-doc readline-doc
sudo apt install ess r-doc-info r-doc-pdf r-mathlib
Somewhere I found a recommendation to installpython-rsvg
, but that's been deleted fromBionic
.I now install
rstudio
version 1.1.456.Getting the
detectorchecker
packageChange to directory
.../Package/detectorchecker
and checkouttravis_test
branchgit checkout travis_test
Double-click on
detectorchecker.Rproj
to loadrstudio
using packagedetectorchecker
. Checkpackrat
options ("Usepackrat
with this project", "Git
ignorepackrat
library"). installpackrat
andtestthat
libraries.A maze of twisty
R
packages, all alike ...I now adopt the following procedure: keep installing and restarting, using
rstudio
to installR
libraries, guided by package description and diagnostics. In order:h5
in fact web suggests I needlibhdf5-dev
, sosudo apt install libhdf5-dev
. However I getrecipe for target 'Attribute.o' failed
. After looking at "How to usepackrat
" I tried to install thedevtools
library. This requiredhttr
which requiredcurl
which complained about absence oflibcurl
. OK, from command line,sudo apt get libcurl4-openssl-dev
. This permitted installation ofcurl
andhttr
anddevtools
linraries, buth5
still breaks. OK, guided by a hint from the web I installedRcpp
. Hurray, nowh5
installs.tiff
spatstat
Now
detectorchecker
builds. But when I test it, I get a complaint aboutroxygen2
. This must be apackrat
issue, I think, asroxygen2
appears to be available in the global library. When I try and install it, I get a complaint aboutstringi
. OK, when i installstringi
then 'roxygen2` installs.Testing
detectorchecker
again, I get a complaint about absence ofknitr
. I install it. Now I getVignetteBuilder package not declared: ‘knitr’
Brian Ripley said in 2014: "As
Sweave
is the only engine supplied with theR
distribution, the package providing any other engine must be specified in the ‘VignetteBuilder’ field of the packageDESCRIPTION
file, and also specified in the ‘Suggests’, ‘Imports’ or ‘Depends’ field (since its namespace must be available to build or check your package)." So I alteredDESCRIPTION
by addingknitr
to theImports
list. Now I get warnings aboutNAMESPACE
not being generated byroxygen2
, andDESCRIPTION
not referrring to a valid licence, but more seriously a slew of errors starting withcreate_ppp_edges_col: no visible global function definition for ‘ppp’
Puzzled:spatstat
is required inDESCR|IPTION
so what is going wrong?!A hint suggests, "Consider adding importFrom("grDevices", "dev.off", "jpeg", "pdf") importFrom("graphics", "image", "plot", "points") importFrom("stats", "binomial", "glm") to your NAMESPACE file." But that doesn't seem to help.