Git Product home page Git Product logo

Comments (3)

richierocks avatar richierocks commented on September 25, 2024

Easiest fix is to add

lines <- sub("\n['\"]_PACKAGE['\"]\n", "\nNULL\n", lines)

before parsing.

from testwhat.ext.

sumedh10 avatar sumedh10 commented on September 25, 2024

@richierocks @filipsch

This is one of the blockers for launching Developing R Packages course (scheduled Aug 24).

PEC

library(devtools)
download.file("http://s3.amazonaws.com/assets.datacamp.com/production/repositories/761/datasets/2b4a9cf769512297a8bbc1fb363681fc57b84e94/ch2_ex13.zip", destfile = "file.zip")
unzip("file.zip")
unlink("file.zip", recursive = TRUE)
unlink("__MACOSX", recursive = TRUE)
setwd("datasummary")

Solution

#' datasummary: Custom Data Summaries
#'
#' Easily generate custom data frame summaries
#'
#' @docType package
#' @name datasummary
"_PACKAGE"

SCT

library(testwhat.ext)
ex() %>%
   parse_roxy() %>% {
     check_roxy_element_matches(., "title", "Custom Data Summaries", fixed = TRUE)
     check_roxy_element_matches(., "description", "Easily generate custom data frame summaries", fixed = TRUE)
     check_roxy_element_matches(., "docType", "package", fixed = TRUE)
     check_roxy_element_matches(., "name", "datasummary", fixed = TRUE)
   }

Error

DataCamp encountered the following error during submit:
Error in read.dcf(file, keep.white = "Authors@R"): cannot open the connection

The solution passes without the SCT.

GH
Teach

from testwhat.ext.

filipsch avatar filipsch commented on September 25, 2024

I verified, and this works on roxygen-fixes.

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.