Comments (3)
Easiest fix is to add
lines <- sub("\n['\"]_PACKAGE['\"]\n", "\nNULL\n", lines)
before parsing.
from testwhat.ext.
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.
from testwhat.ext.
I verified, and this works on roxygen-fixes
.
from testwhat.ext.
Related Issues (8)
- Reorganize @import, @importFrom fields HOT 1
- Run pre-exercise code when testing examples
- Easier testing of base graphics
- roxygen2:::parse_blocks no longer exists in roxygen2 version 6.1.0
- Allow pre-tidying of character strings HOT 5
- Check @import tag in roxygen HOT 3
- Re-enable and fix roxygen test that caused build to fail
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from testwhat.ext.