Hi I am having having problems with the package Rcpp. Although I have installed and loaded it, in two different situations it seems to send R into an endless loop The first one was trying to run code from a site showing how to use the stl() function *http://www.gardner.fyi/blog/STL-Part-I/ <http://www.gardner.fyi/blog/STL-Part-I/>* The code and data is at https://github.com/dillongardner/NYTraffic The first few lines are as follows: library(feather) library(dplyr) library(tidyr) library(ggplot2) library(stlplus) library(dygraphs) library(lubridate) library(Rcpp) ########################################################################## # Read and format ########################################################################## myData <- read_feather("NYTrafficData.feather") At this point I get the error message: ?Error in openFeather(path) : function 'Rcpp_precious_remove' not provided by package 'Rcpp'? BUT ? if now I rerun the line library(Rcpp) I don?t get the error message but R goes into an endless loop with the red button thing Similarly, if I try to run the example code from the R documentation site https://www.rdocumentation.org/packages/stlplus/versions/0.5.1/topics/stlplus library(stlplus) library(Rcpp) ###### co2_stl <- stlplus(co2, t = as.vector(time(co2)), n.p = 12, l.window = 13, t.window = 19, s.window = 35, s.degree = 1, sub.labels = substr(month.name, 1, 3)) Again I get the error message ?Error in c_loess(x[y_idx], y[y_idx], degree, span, weights[y_idx], m, : function 'Rcpp_precious_remove' not provided by package 'Rcpp'? BUT again if I rerun the line library(Rcpp) I don?t get the error message but R goes into an endless loop with the red button thing Can anyone help me to sort this? Thanks Nick Wray [[alternative HTML version deleted]]
Do read the Posting Guide ... this is the wrong venue for detailed discussions of contributed packages. For this topic I suggest [1], though you may want to make sure you have updated all of your packages with no errors and that this behavior still occurs before going there. You should also prove your status by providing the output of sessionInfo() in your report. [1] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel On September 29, 2021 9:29:21 AM PDT, Nick Wray <nickmwray at gmail.com> wrote:>Hi I am having having problems with the package Rcpp. Although I have >installed and loaded it, in two different situations it seems to send R >into an endless loop > > > >The first one was trying to run code from a site showing how to use the >stl() function > >*http://www.gardner.fyi/blog/STL-Part-I/ ><http://www.gardner.fyi/blog/STL-Part-I/>* > > > >The code and data is at > >https://github.com/dillongardner/NYTraffic > > > >The first few lines are as follows: > > > >library(feather) >library(dplyr) >library(tidyr) >library(ggplot2) >library(stlplus) >library(dygraphs) >library(lubridate) >library(Rcpp) >########################################################################## ># Read and format >########################################################################## > >myData <- read_feather("NYTrafficData.feather") > >At this point I get the error message: ?Error in openFeather(path) : > > function 'Rcpp_precious_remove' not provided by package 'Rcpp'? > > > >BUT ? if now I rerun the line > >library(Rcpp) > >I don?t get the error message but R goes into an endless loop with the red >button thing > > > >Similarly, if I try to run the example code from the R documentation site > > > >https://www.rdocumentation.org/packages/stlplus/versions/0.5.1/topics/stlplus > > > >library(stlplus) >library(Rcpp) >###### >co2_stl <- stlplus(co2, t = as.vector(time(co2)), n.p = 12, > l.window = 13, t.window = 19, s.window = 35, s.degree = 1, > sub.labels = substr(month.name, 1, 3)) > >Again I get the error message ?Error in c_loess(x[y_idx], y[y_idx], >degree, span, weights[y_idx], m, : > > function 'Rcpp_precious_remove' not provided by package 'Rcpp'? > > > >BUT again if I rerun the line > >library(Rcpp) > >I don?t get the error message but R goes into an endless loop with the red >button thing > > > >Can anyone help me to sort this? Thanks Nick Wray > > [[alternative HTML version deleted]] > >______________________________________________ >R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see >https://stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide http://www.R-project.org/posting-guide.html >and provide commented, minimal, self-contained, reproducible code.-- Sent from my phone. Please excuse my brevity.
Hello, This problem is pratically a StackOverflow FAQ [1], with link to the Rcpp-devel mailing list [2]. [1] https://stackoverflow.com/questions/68416435/rcpp-package-doesnt-include-rcpp-precious-remove [2] https://www.mail-archive.com/rcpp-devel at lists.r-forge.r-project.org/msg10226.html Hope this helps, Rui Barradas ?s 17:29 de 29/09/21, Nick Wray escreveu:> Hi I am having having problems with the package Rcpp. Although I have > installed and loaded it, in two different situations it seems to send R > into an endless loop > > > > The first one was trying to run code from a site showing how to use the > stl() function > > *http://www.gardner.fyi/blog/STL-Part-I/ > <http://www.gardner.fyi/blog/STL-Part-I/>* > > > > The code and data is at > > https://github.com/dillongardner/NYTraffic > > > > The first few lines are as follows: > > > > library(feather) > library(dplyr) > library(tidyr) > library(ggplot2) > library(stlplus) > library(dygraphs) > library(lubridate) > library(Rcpp) > ########################################################################## > # Read and format > ########################################################################## > > myData <- read_feather("NYTrafficData.feather") > > At this point I get the error message: ?Error in openFeather(path) : > > function 'Rcpp_precious_remove' not provided by package 'Rcpp'? > > > > BUT ? if now I rerun the line > > library(Rcpp) > > I don?t get the error message but R goes into an endless loop with the red > button thing > > > > Similarly, if I try to run the example code from the R documentation site > > > > https://www.rdocumentation.org/packages/stlplus/versions/0.5.1/topics/stlplus > > > > library(stlplus) > library(Rcpp) > ###### > co2_stl <- stlplus(co2, t = as.vector(time(co2)), n.p = 12, > l.window = 13, t.window = 19, s.window = 35, s.degree = 1, > sub.labels = substr(month.name, 1, 3)) > > Again I get the error message ?Error in c_loess(x[y_idx], y[y_idx], > degree, span, weights[y_idx], m, : > > function 'Rcpp_precious_remove' not provided by package 'Rcpp'? > > > > BUT again if I rerun the line > > library(Rcpp) > > I don?t get the error message but R goes into an endless loop with the red > button thing > > > > Can anyone help me to sort this? Thanks Nick Wray > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >