Skip to content

Commit

Permalink
Merge pull request #106 from kbroman/cran
Browse files Browse the repository at this point in the history
Fix compiler warnings on CRAN
  • Loading branch information
kbroman authored Nov 27, 2023
2 parents 832f9da + b4985f4 commit 21e6296
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
branches: [main, master, cran]
pull_request:
branches: [main, master]
branches: [main, master, cran]

name: R-CMD-check

Expand Down
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: qtl
Version: 1.62
Date: 2023-11-17
Version: 1.66
Date: 2023-11-27
Title: Tools for Analyzing QTL Experiments
Author: Karl W Broman <[email protected]> and Hao Wu, with
ideas from Gary Churchill and Saunak Sen and contributions from
Expand Down
10 changes: 10 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Revision history for the R/qtl package

## Version 1.66, 2023-11-27

### Bug fixes

- Fixed problem in a call to Rprintf() in C++ code, identified by CRAN.
(Issue #104.)

- Fixed additional compiler warnings on CRAN (Issue #105).


## Version 1.62, 2023-11-17

### Bug fixes
Expand Down
12 changes: 6 additions & 6 deletions inst/INSTALL_ME.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ INSTALLATION OF R AND R/QTL (Windows)

This will download the binary from CRAN and install it.

Alternatively, you can download the "qtl_1.62.zip" (or the
Alternatively, you can download the "qtl_1.66.zip" (or the
equivalent). Then start R and select (on the menu bar)
"Packages" and then "Install package from local zip file...".
Find the file "qtl_1.62.zip" on your hard drive, and click
Find the file "qtl_1.66.zip" on your hard drive, and click
"Open".


Expand All @@ -58,7 +58,7 @@ INSTALLATION OF R AND R/QTL (MacOS version 10.13 and above)
This will download the binary from CRAN and install it.

Alternatively, download the compiled version of R/qtl for
Mac OS X, a file like "qtl_1.62.tgz". Then start R and
Mac OS X, a file like "qtl_1.66.tgz". Then start R and
select (on the menu bar) "Packages & Data" -> "Package
Installer". Select "Local Binary Package" from the drop-down
menu at the top of the window that comes up. Click "Install"
Expand All @@ -78,19 +78,19 @@ INSTALLATION OF R/QTL (Unix)
This will download the binary from CRAN and install it.

Alternatively, download the R/qtl source code (a file like
"qtl_1.62.tar.gz"). Go into the directory containing the
"qtl_1.66.tar.gz"). Go into the directory containing the
file and do one of the following:

a. To install R/qtl in the standard location
(/usr/local/lib/R/library), type

R CMD INSTALL qtl_1.62.tar.gz
R CMD INSTALL qtl_1.66.tar.gz

You'll probably need to be superuser.

b. To install the package locally, type

R CMD INSTALL --library=/home/auser/Rlibs qtl_1.62.tar.gz
R CMD INSTALL --library=/home/auser/Rlibs qtl_1.66.tar.gz

(where "/home/auser/Rlibs" should be replaced with the
appropriate directory).
Expand Down
4 changes: 2 additions & 2 deletions src/mqmaugment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* mqmaugment.cpp
*
* Copyright (c) 1996-2011 by
* Copyright (c) 1996-2023 by
* Ritsert C Jansen, Danny Arends, Pjotr Prins and Karl W Broman
*
* initial MQM C code written between 1996-2002 by Ritsert C. Jansen
Expand Down Expand Up @@ -241,7 +241,7 @@ int mqmaugmentfull(MQMMarkerMatrix* markers,int* nind, int* augmentednind, ivect
(*augmentednind)=(*augmentednind)+(numimputations*current_leftover_ind);
(*nind)= (*nind)+(current_leftover_ind);
debug_trace("nind:%d,naugmented:%d",(*nind)+(current_leftover_ind),(*augmentednind)+(current_leftover_ind));
Rprintf("INFO: VALGRIND MEMORY DEBUG BARRIERE TRIGGERED\n", "");
Rprintf("INFO: VALGRIND MEMORY DEBUG BARRIERE TRIGGERED\n");
}else{
if(ind_still_left && augment_strategy == 3){
if(verbose) Rprintf("INFO: Dropping %d individuals from further analysis\n",ind_still_left);
Expand Down
7 changes: 5 additions & 2 deletions src/mqmdatatypes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,11 @@ void copyvector(vector vsource, vector vdestination, int dim) {

#ifndef ENABLE_C99_MACROS
void fatal(const char* s, ...){
Rf_error(s);
Rprintf("%s", s);
Rf_error("Fatal error\n");
}
void debug_trace(const char*, ...){}
void info(const char* s, ...){ Rprintf("INFO: "); Rprintf(s); Rprintf("\n"); }
void info(const char* s, ...){
Rprintf("INFO: %s\n", s);
}
#endif

0 comments on commit 21e6296

Please sign in to comment.