Skip to content

Commit

Permalink
using savvy
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellga committed Apr 6, 2024
1 parent 25f0c43 commit 6ef04ea
Show file tree
Hide file tree
Showing 21 changed files with 840 additions and 682 deletions.
1 change: 0 additions & 1 deletion r-harmonium/.testtest.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
rextendr::register_extendr()
devtools::load_all(".", export_all = FALSE)
devtools::test()
devtools::check(document = FALSE, cran = FALSE, args = c("--no-manual", "--no-build-vignettes", "--no-codoc", "--no-examples", "--no-tests"))
Expand Down
34 changes: 4 additions & 30 deletions r-harmonium/NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ importFrom("utils", "browseURL")
export(HArray)
export(HDataType)
export(HAudioSink)
#export(HResampler)
export(HResampler)
export(HResamplerType)
export(HSincInterpolationParameters)
export(HPolynomialDegree)
export(HWindow)
export(HMetadataType)
#export(HFile)
export(HFile)
export(HFft)
export(HAudioOp)
export(hdocs)
#export(HDecoderStream)
export(HDecoderStream)

S3method("==",HArray)
S3method("==",HDataType)
Expand All @@ -29,34 +29,8 @@ S3method("!=",HPolynomialDegree)
S3method(print,HArray)
S3method(print,HDataType)
S3method(print,HMetadataType)
#S3method(print,HResampler)
S3method(print,HResampler)
S3method(print,HResamplerType)
S3method(print,HPolynomialDegree)
#S3method("$",HArray)
#S3method("$",HAudioSink)
#S3method("$",HDataType)
##S3method("$",HFile)
#S3method("$",HSincInterpolationParameters)
#S3method("$",HMetadataType)
##S3method("$",HResampler)
#S3method("$",HResamplerType)
#S3method("$",HWindow)
#S3method("$",HPolynomialDegree)
#S3method("$",HFft)
#S3method("$",HAudioOp)
##S3method("$",HDecoderStream)
#S3method("[[",HArray)
#S3method("[[",HAudioSink)
#S3method("[[",HDataType)
##S3method("[[",HFile)
#S3method("[[",HSincInterpolationParameters)
#S3method("[[",HMetadataType)
##S3method("[[",HResampler)
#S3method("[[",HResamplerType)
#S3method("[[",HWindow)
#S3method("[[",HPolynomialDegree)
#S3method("[[",HFft)
#S3method("[[",HAudioOp)
##S3method("[[",HDecoderStream)

useDynLib(harmonium, .registration = TRUE)
28 changes: 14 additions & 14 deletions r-harmonium/R/structs.R
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# print.HArray = function(x, ...) {
# cat(class(x), sep = "\n")
# x$dtype()$print()
# x$print()
# }
# "==.HArray" <- function(e1,e2) e1$eq(e2)
# "!=.HArray" <- function(e1,e2) e1$ne(e2)
#
# print.HDataType = function(x, ...) {
# x$print()
# }
# "==.HDataType" <- function(e1,e2) e1$eq(e2)
# "!=.HDataType" <- function(e1,e2) e1$ne(e2)
#
print.HArray = function(x, ...) {
cat(class(x), sep = "\n")
x$dtype()$print()
x$print()
}
"==.HArray" <- function(e1,e2) e1$eq(e2)
"!=.HArray" <- function(e1,e2) e1$ne(e2)

print.HDataType = function(x, ...) {
x$print()
}
"==.HDataType" <- function(e1,e2) e1$eq(e2)
"!=.HDataType" <- function(e1,e2) e1$ne(e2)

# print.HMetadataType = function(x, ...) {
# x$print()
# }
Expand Down
Loading

0 comments on commit 6ef04ea

Please sign in to comment.