Skip to content

Commit

Permalink
solve import and namespace issue
Browse files Browse the repository at this point in the history
  • Loading branch information
goepp committed Jun 6, 2022
1 parent 6ad5901 commit b6f28f3
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
7 changes: 1 addition & 6 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,8 @@ Imports:
tidyr,
splines2,
Rcpp,
Matrix,
mgcv,
reshape2,
pspline,
rlang,
pryr,
fda
rlang
RoxygenNote: 7.1.1
LinkingTo: Rcpp
Suggests: testthat,
Expand Down
4 changes: 4 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,16 @@ export(weight_design_band)
export(wridge_solver)
import(Rcpp)
importFrom(Rcpp,sourceCpp)
importFrom(dplyr,mutate)
importFrom(ggplot2,ggplot)
importFrom(graphics,abline)
importFrom(graphics,lines)
importFrom(graphics,plot)
importFrom(magrittr,"%>%")
importFrom(mgcv,gam)
importFrom(rlang,.data)
importFrom(stats,lm)
importFrom(stats,predict)
importFrom(stats,var)
importFrom(tidyr,pivot_longer)
useDynLib(aspline)
10 changes: 10 additions & 0 deletions R/main.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
#' @useDynLib aspline
#' @importFrom Rcpp sourceCpp
NULL

# Suppress R CMD check note
# This just imports a function from each of the packages
# used in the vignette.
#' @importFrom dplyr mutate
#' @importFrom ggplot2 ggplot
#' @importFrom mgcv gam
#' @importFrom tidyr pivot_longer
NULL

#' Pipe operator
#'
#' @name %>%
Expand Down
1 change: 1 addition & 0 deletions vignettes/helmet_data_example.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ library(aspline)
library(ggplot2)
library(dplyr)
library(tidyr)
library(mgcv)
library(splines2)
data(helmet)
x <- helmet$x
Expand Down

0 comments on commit b6f28f3

Please sign in to comment.