Skip to content

Commit

Permalink
0.5.0 CRAN release
Browse files Browse the repository at this point in the history
  • Loading branch information
dselivanov committed Dec 1, 2021
1 parent 5d57b45 commit 50f2332
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 19 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ docs/
^.clang-format$
^Makefile$
extradata/
revdep/
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ src/*.so
src/*.dll
.DS_Store
extradata/

*.status
config.log
autom4te.cache

src/Makevars
revdep
.Rprofile
6 changes: 3 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ License: GPL (>= 2)
Encoding: UTF-8
LazyData: true
ByteCompile: true
Depends: R (>= 3.6.0), methods, MatrixExtra (>= 0.1.7)
Imports:
Matrix (>= 1.3),
Depends: R (>= 3.6.0), methods, Matrix (>= 1.3)
Imports:
MatrixExtra (>= 0.1.7),
Rcpp (>= 0.11),
data.table (>= 1.10.0),
float (>= 0.2-2),
Expand Down
1 change: 0 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export(ndcg_k)
export(soft_impute)
export(soft_svd)
import(Matrix)
import(MatrixExtra)
import(Rcpp)
import(data.table)
import(float)
Expand Down
3 changes: 1 addition & 2 deletions R/zzz.R
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
#' @import methods
#' @import Matrix
#' @importFrom stats rnorm
#' @import data.table
#' @import Rcpp
#' @import float
#' @import MatrixExtra
#' @import Matrix
#' @importFrom RhpcBLASctl get_num_cores
#' @useDynLib rsparse, .registration = TRUE

Expand Down
12 changes: 3 additions & 9 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# New release
# Resubmission

- fixed autoconf 2.71 warnings
- fixed pkg imports to not break dependencies

# Test environments

Expand All @@ -9,10 +9,4 @@

# R CMD check results

0 errors | 0 warning | 1 notes

> File ‘rsparse/libs/rsparse.so’:
Found ‘__ZNSt3__14cerrE’, possibly from ‘std::cerr’ (C++)
Objects: ‘wrmf_explicit.o’, ‘wrmf_implicit.o’

this is spurious NOTE, we don't touch stderr.
0 errors | 0 warning | 0 notes
5 changes: 5 additions & 0 deletions inst/include/nnls.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#ifdef RSPARSE_R_PKG
#include <RcppArmadillo.h>
#else
#include <armadillo>
#endif


#define EPS 1e-16

Expand Down
5 changes: 5 additions & 0 deletions inst/include/wrmf.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#ifdef RSPARSE_R_PKG
#include <RcppArmadillo.h>
#else
#include <armadillo>
#endif

#include "mapped_csc.hpp"
#include "mapped_csr.hpp"

Expand Down
2 changes: 1 addition & 1 deletion src/Makevars.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PKG_CPPFLAGS = -DARMA_32BIT_WORD -I../inst/include/
PKG_CPPFLAGS = -DARMA_32BIT_WORD -I../inst/include/ -DRSPARSE_R_PKG -DARMA_NO_DEBUG
PKG_CXXFLAGS = @OPENMP_FLAG@
PKG_LIBS = @OPENMP_FLAG@ @FLOAT_LIBS@ $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)

Expand Down
2 changes: 1 addition & 1 deletion src/Makevars.win
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
R_SCMD = ${R_HOME}/bin${R_ARCH_BIN}/Rscript -e
FLOAT_LIBS = $(shell ${R_SCMD} "float:::ldflags()")

PKG_CPPFLAGS = -I../inst/include/ -DARMA_32BIT_WORD -DARMA_DONT_USE_BLAS -DARMA_NO_DEBUG
PKG_CPPFLAGS = -I../inst/include/ -DARMA_32BIT_WORD -DARMA_DONT_USE_BLAS -DARMA_NO_DEBUG -DRSPARSE_R_PKG
PKG_CXXFLAGS = $(SHLIB_OPENMP_CXXFLAGS)
PKG_LIBS = $(SHLIB_OPENMP_CXXFLAGS) $(FLOAT_LIBS) $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)

Expand Down

0 comments on commit 50f2332

Please sign in to comment.