Skip to content

Commit

Permalink
fix format warnings in R-devel
Browse files Browse the repository at this point in the history
  • Loading branch information
JanMarvin committed Dec 2, 2023
1 parent d270ef4 commit 502d0a2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: readspss
Type: Package
Title: Importing and Exporting SPSS Files
Version: 0.17
Version: 0.17.1
Authors@R: c(
person("Jan Marvin", "Garbuszus",
email = "[email protected]", role = c("aut", "cre")),
Expand Down
7 changes: 4 additions & 3 deletions src/read_sav_known_n.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,10 @@ Rcpp::List read_sav_known_n (Rcpp::List& df, std::fstream& sav,


if (debug) {
Rprintf("cflag: %d\n", cflag);
Rprintf("curpos: %d\n", curpos);
Rprintf("endpos: %d\n", endoffile);
Rcpp::Rcout << "cflag: " << cflag
<< "\ncurpos: " << curpos
<< "\nendpos: " << endpos
<< std::endl;
}


Expand Down
2 changes: 1 addition & 1 deletion src/read_sav_unknown_n.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ int64_t read_sav_unknown_n (std::fstream& sav,
sav.seekg(curpos);

if (debug) {
Rprintf("n is %d\n", nn);
Rcpp::Rcout << "n is " << nn << std::endl;
}

return(nn);
Expand Down
9 changes: 5 additions & 4 deletions src/readsav.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ List readsav(const char * filePath, const bool debug, std::string encStr,
n = readbin((int32_t)n, sav, swapit);

if (debug)
Rprintf("N: %d \n", n);
Rcpp::Rcout << "N: " << n << std::endl;

int bias = 0; double biasd = 0; // 100: compression bias
bias = readbin(biasd, sav, swapit);
Expand Down Expand Up @@ -532,9 +532,10 @@ List readsav(const char * filePath, const bool debug, std::string encStr,
lowest = readbin(lowest, sav, swapit); // lowest

if (debug) {
Rprintf("\nsysmiss %fl\n", sysmiss);
Rprintf("highest %d\n", highest);
Rprintf("lowest %d\n\n", lowest);
Rcpp::Rcout << "\nsysmiss" << sysmiss
<< "\nhighest " << highest
<< "\nlowest " << lowest
<< "\n" << std::endl;
}

// TODO: is this correct?
Expand Down

0 comments on commit 502d0a2

Please sign in to comment.