Skip to content

Commit

Permalink
fixed check_win_devel() error and note
Browse files Browse the repository at this point in the history
  • Loading branch information
raphywink committed Jan 29, 2019
1 parent fb0dd65 commit a23bd3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/emuR-emuRtrackdata.R
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ convert_wideToLong <- function(td, calcFreqs = F){
# calc freq if calcFreqs = F otherwise drop column
if(calcFreqs) {
tracks_long = tracks_long %>%
dplyr::mutate(freq = rep(seq(0, (unique(.data$sample_rate) / 2), length.out = length(tracks_colIdx)), each = n() / length(tracks_colIdx)))
dplyr::mutate(freq = rep(seq(0, (unique(.data$sample_rate) / 2), length.out = length(tracks_colIdx)), each = dplyr::n() / length(tracks_colIdx)))
} else{
tracks_long = tracks_long %>%
dplyr::select(-.data$freq)
Expand Down
2 changes: 1 addition & 1 deletion R/emuR-get_trackdata.R
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
}
}

if(resultType == "emuRtrackdata" && class(seglist) =="emusegs"){
if(resultType == "emuRtrackdata" && class(seglist)[1] == "emusegs"){
stop("resultType can only be 'trackdata', if a seglist of class 'emusegs' is passed in")
}

Expand Down

0 comments on commit a23bd3b

Please sign in to comment.