Code Monkey home page Code Monkey logo

Comments (3)

eliotmcintire avatar eliotmcintire commented on July 4, 2024 1

A couple thoughts:

  1. GitHub.com doesn't offer a way to "zip" parts of a repository. Currently all downloading from GitHub for a repository relies on this approach.
  2. Either, we download the whole repository in a zip, then pull out only the parts we want (the subfolders) or we have to manually get all the parts to a module, which will be difficult. I don't see this as a viable solution. it is like trying to get an R package by chosing each file one by one (DESCRIPTION, NAMESPACE, R/functions.R, R/setup.R, etc.)

Unless there is a way to "zip" a folder on GitHub, it seems like we will have to do the first option, download or clone the repository, then pull out the desired subfolder.

from spades.project.

CeresBarros avatar CeresBarros commented on July 4, 2024

UPDATE:
I see a similar behaviour running setupProject

Require::Require("CeresBarros/SpaDES.project@52-toolsfile_extmodules-returns-r-not-r-")
out <- setupProject(
  name = "castorExample",
  paths = list("inputPath" = "inputs/",
               "outputPath" = "outputs/",
               "modulePath" = "modules/",
               "packagePath" = "packages/", 
               "cachePath" = "reproducible.cache/",
               "projectPath" = "."),
  modules = c("bcgov/castor@main/R/SpaDES-modules/dataCastor/dataCastor.R"),
              ),
  Restart = FALSE
)

from spades.project.

Related Issues (20)

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.