Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Feature/add more shields#1011

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
eddelbuettel merged 3 commits intomasterfromfeature/add_more_shields
Nov 4, 2019
Merged
Show file tree
Hide file tree
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
NextNext commit
protect Rf_mkString inside Rf_lang2
  • Loading branch information
@eddelbuettel
eddelbuettel committedNov 2, 2019
commitf2ed04ff646a0d91528232a559841a9b0d0f00c3
1 change: 1 addition & 0 deletionsChangeLog
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@

* DESCRIPTION (Version, Date): Roll minor version

* inst/include/Rcpp/Reference.h: Shield Rf_mkstring inside Rf_lang2
2019-10-31 Romain Francois <romain@rstudio.com>

* inst/include/Rcpp/DataFrame.h: Protect temporaries from gc
Expand Down
5 changes: 3 additions & 2 deletionsinst/include/Rcpp/Reference.h
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,7 +2,7 @@
//
// Reference.h: Rcpp R/C++ interface class library -- Reference class objects
//
// Copyright (C) 2010 -2015 Dirk Eddelbuettel and Romain Francois
// Copyright (C) 2010 -2019 Dirk Eddelbuettel and Romain Francois
//
// This file is part of Rcpp.
//
Expand DownExpand Up@@ -58,7 +58,8 @@ namespace Rcpp{
*/
Reference_Impl( const std::string& klass ) {
SEXP newSym = Rf_install("new");
Shield<SEXP> call( Rf_lang2( newSym, Rf_mkString( klass.c_str() ) ) );
Shield<SEXP> str(Rf_mkString(klass.c_str()));
Shield<SEXP> call(Rf_lang2(newSym, str));
Storage::set__( Rcpp_fast_eval( call , Rcpp::internal::get_Rcpp_namespace()) );
}

Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp