Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Functions to copy R script templates for no automatized analysis #1

Open
lpantano opened this issue Jun 4, 2018 · 1 comment
Open

Comments

@lpantano
Copy link
Contributor

lpantano commented Jun 4, 2018

It would be useful to have this code in a function:

source = file.path(system.file("rmarkdown", package="hbcABC"),
          "Rscripts", 
          "singlecell",
          "clustering_seurat.R")
file.copy(source, "clustering.r")

so we can just call copy_clustering_seurat(final_location). Good things about making functions:

  • you can use auto-complete in R, so you can see all the files and navigate to the one you want to use.
  • It would be good to support copying from remote to have the last version :)
@mjsteinbaugh
Copy link

That's essentially what the prepareTemplate() function in bcbioBase does, which we can modify to copy scripts instead:
https://github.com/hbc/bcbioBase/blob/master/R/prepareTemplate.R

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants