BiologicalRecordsCentre / sparta

Species Presence/Absence R Trends Analyses
http://biologicalrecordscentre.github.io/sparta/index.html
MIT License
21 stars 24 forks source link

Metadata is too verbose #193

Closed drnickisaac closed 3 years ago

drnickisaac commented 4 years ago

I just ran the code in the help section of occDetFunc(). I then tried to look at the output and found there is too much information to actually look at properly. attr(results, "metadata") looks fine. However, the screenshot below shows the problem evident using the two different ways of looking at the structure of the output.

The bottom left of the screen shows that 1281 lines of information have been omitted from the information provided in the Environment pane. The right hand side shows you what I see after typing str(results) then scrolling up to the top of the screen. Neither of them gives a complete picture, because there is too much unnecessary information about the packages that have been loaded. Should be easy to fix, I think.

Untitled

AugustT commented 4 years ago

We need to right a print method for this object class

http://adv-r.had.co.nz/S3.html

drnickisaac commented 3 years ago

I have fixed this: session.info <- sessionInfo() packages <- c(sapply(session.info[7][[1]], function(x) x$Version), sapply(session.info[8][[1]], function(x) x$Version)) then session_info = list(session.info[-c(7:8)], packages)