Coder Social home page Coder Social logo

ednacutoff's People

Contributors

andrew-edwards avatar seananderson avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

seananderson

ednacutoff's Issues

Test if package installs okay and vignette can be seen

@dcallander @bensutherland

You should be able to install the package and run the vignette. See the README file here for instructions.....

https://github.com/andrew-edwards/eDNAcutoff

This repo is public but shouldn't make much sense to anyone without the manuscript (which is private) - having it public does make testing easier.

Okay, let me know if anything works! The structure is all set up nicely so it should be relatively easy to add new methods etc., in conjunction with updating the manuscript.

If the vignette doesn't work then you probably won't get too far - just let me know (here).

Making vignette automatically viewable

Maybe try this (and put a short example in the readme):

What about My Vignettes?
So how should you make your vignettes available to the public? What I’ve done is commit both the .rmd and generated .html file to my GitHub repository. GitHub won’t directly render the .html file, but you can use the GitHub HTML Preview service. Basically, you just give it the url of your html file from your GitHub and it will render it. For instance, here is the preview of my html vignette:

http://htmlpreview.github.io/?https://github.com/tinyheero/CHL26predictor/blob/master/vignettes/introduction.html

Next steps to get package working

  • Do simple example as a unit test
  • Do complex example (anonymise the species) as a unit test
  • Write a vignette
  • Add test for change_alpha
  • Change terminology (mock etc.) as per andrew-edwards/eDNA-filter#17
  • Add README.Rmd to make README.md
  • Get Travis running to check commits don't break anything
  • Do a check() to check submittable to CRAN down the road
  • Get someone to test a download

Create a function to highlight which were set to zeros

Can't just do

> small_removed <- remove_false_pos(small_example)
> small_removed - small_example

because the first column contains characters:

> small_removed
# A tibble: 4 x 8
  Sample     m1     m2    m3    m4   `1`   `2`   `3`
  <chr>   <int>  <int> <int> <int> <int> <int> <int>
1 mock   257329 169668 79560 47859     0    17     0
2 1           0      0     0     0    42    17 61802
3 2           0      0     0     0 43997    10    17
4 3           0      0     0     0    26     0 22621

So function just needs to remove first column, do the difference, then put the first column back in again. Presumably something like

res <- dplyr::select(input, -1) - dplyr::select(output, -1)
res <- cbind(dplyr::select(input, 1), res)      # or dplyr version of cbind

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.