Skip to content

Commit

Permalink
replace class check by inherits check, I missed this when reviewing #…
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentvanhees committed Feb 22, 2024
1 parent b9ba6b8 commit a310d7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/g.inspectfile.R
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ g.inspectfile = function(datafile, desiredtz = "", params_rawdata = c(),
rmc.scalefactor.acc = params_rawdata[["rmc.scalefactor.acc"]],
desiredtz = desiredtz,
configtz = configtz)
if (class(Pusercsvformat$header) == "character" && Pusercsvformat$header == "no header") {
if (inherits(Pusercsvformat$header, "character") && Pusercsvformat$header == "no header") {
sf = params_rawdata[["rmc.sf"]]
} else {
sf = as.numeric(Pusercsvformat$header["sample_rate",1])
Expand Down

0 comments on commit a310d7d

Please sign in to comment.