Git Product home page Git Product logo

Comments (3)

sumedh10 avatar sumedh10 commented on September 24, 2024

Oops, looks like this is related to #3

from testwhat.ext.

sumedh10 avatar sumedh10 commented on September 24, 2024

Looks like I forgot to add alternative functions that do work, but it's not clear to me if they are intended to be used in this way:

 ex() %>%
   parse_roxy() %>% {
     check_roxy_element_equals(., "import")
     check_roxy_element_equals(., "import", index = 2)
     check_roxy_element_equals(., "importFrom")
   }

from testwhat.ext.

filipsch avatar filipsch commented on September 24, 2024

If you install roxygen-fixes branch of testwhat.ext, the following works:

pec <- '

'

sol_code <- "
#' @import dplyr
#' @import purrr
#' @importFrom tidyr gather
x <- function(y) {
  return(NULL)
}
"

stu_code <- sol_code

library(testwhat)
setup_state(pec = pec, sol_code = sol_code, stu_code = stu_code)

library(testwhat.ext)
ex() %>%
  parse_roxy() %>% {
    check_roxy_imports_package(., "dplyr")
    check_roxy_imports_package(., "purrr")
    check_roxy_imports_object_from_package(., "tidyr", "gather")
  }

from testwhat.ext.

Related Issues (8)

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.