When I am trying to setup my slack environment variables with slackr_setup, I receive the following error:
Error in if (nrow(chan) == 0) { : argument is of length zero
I read that updating the slackr package with devtools::install_github("mrkaye97/slackr")
"would do the trick" but i still receive the same error and I am pretty confused. If anyone has a workaround that would be incredible!
do you mind posting a reprex if possible that shows the issue? My guess is that this is fixed in the newest version of slackr (2.2.0), which you can install via CRAN or Github now, but if you try updating and keep getting this issue, I'd like to fix it!
I am trying to push the following package to CRAN, but I keep getting an error on the check.
Error:
✓ checking R/sysdata.rda ...
WARNING
‘qpdf’ is needed for checks on size reduction of PDFs
✓ checking installed files from ‘inst/doc’ ...
✓ checking files in ‘vignettes’ ...
E checking examples (3s)
Running examples in ‘oRus-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: analyseStories
> ### Title: Analysing Stories
> ### Aliases: analyseStories
>
> ### ** Examples
>
> # Transform the stories
> fileUrl <- example_stories()
> stories <- analyseStories(fileUrl, 7)
Joining, by = "word"
Joining, by = "word"
Error in loadNamespace(name) : there is no package called ‘reshape2’
Calls: analyseStories ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted
Current problems:
The example is in orus::analyseStores(...) function.
The example actually runs and works on the pkgdown website.
The error appears only when doing devtools::check
I have tried multiple things:
This answer base::assign(".ptime", proc.time(), pos = "CheckExEnv") ERROR when using devtools::check suggested using dontrun{...}. It passes CRAN's check, but it was bounced by a person after a couple of days.
This answer R package fails devtools::check, because "could not find function" even though the function is imported in NAMESPACE suggested doing require on the missing library. I did require(reshape2) but the check still does not pass.
This answer "Could not find function" in Roxygen examples during CMD check suggests that I need to make all my functions public (exported). I don't want to do that. I tried doing orus:::some_function(...) to call to the non-exported functions inside analyseStores but it doesn't work either.
According to this one: R package build failed when checking examples the data is working and the function has the #export tag. Also, namespace is properly updated.
I have run out of options. Any idea of what is happening?
As #stefan suggested in the comments, I had to add reshape2 into the Suggested packages in the description file. I added using:
usethis::usepackage("reshape2", "Suggests")
Followed by regenerating the docs:
devtools:document()
Package is on its way to CRAN!
I call library('RcmdrPlugin.BCA') but unfortunately i get error message like this:
object 'importRODBCtable' not found
Before library('RcmdrPlugin.BCA') have you executed install.packages("RcmdrPlugin.BCA")?
If you did it, the problem may be the version: https://cran.r-project.org/web/packages/RcmdrPlugin.BCA/index.html
You have to work with R version above 3.0.0. and Rcmdr above 2.1-0.
The following example code in the documentation of the Thinknum package
install.packages("Thinknum")
library(Thinknum)
thinknumdata = Thinknum("total_revenue(goog)")
leads on my machine to the following error:
Error in Thinknum("total_revenue(goog)") : Requested Expression does not exist.
It would help me a lot, if one or more people could run the example code on another machine.
Sometimes when I try to load dplyr I get the following error:
Error in library.dynam(lib, package, package.lib) :
shared object ‘dplyr.so’ not found
In addition: Warning message:
S3 methods ‘[.grouped_df’, ‘[.tbl_df’, ‘all.equal.tbl_df’, ‘all.equal.tbl_dt’, ‘anti_join.data.frame’, ‘anti_join.data.table’, ‘anti_join.tbl_df’, ‘anti_join.tbl_sql’, ‘arrange_.data.frame’, ‘arrange_.data.table’, ‘arrange_.grouped_dt’, ‘arrange_.tbl_df’, ‘arrange_.tbl_dt’, ‘arrange_.tbl_sql’, ‘as.data.frame.grouped_df’, ‘as.data.frame.rowwise_df’, ‘as.data.frame.tbl_cube’, ‘as.data.frame.tbl_df’, ‘as.data.frame.tbl_dt’, ‘as.data.frame.tbl_sql’, ‘as.fun_list.character’, ‘as.fun_list.fun_list’, ‘as.tbl.data.frame’, ‘as.tbl.data.table’, ‘as.tbl.tbl’, ‘as.tbl_cube.array’, ‘as.tbl_cube.data.frame’, ‘as.tbl_cube.matrix’, ‘as.tbl_cube.table’, ‘auto_copy.tbl_cube’, ‘auto_copy.tbl_df’, ‘auto_copy.tbl_dt’, ‘auto_copy.tbl_sql’, ‘c.sql’, ‘collapse.data.frame’, ‘collapse.tbl_df’, ‘collapse.tbl_dt’, ‘collapse.tbl_sql’, ‘collect.data.frame’, ‘c [... truncated]
Error: package or namespace load failed for ‘dplyr’
Once I restart the R process is will work fine. Is there any reason this is happening sometimes but not other times?
I can't comment because I don't have 50 reputation HOWEVER I did have the same problem and I followed what marbles had suggested.
I am using a Mac and was using Microsoft's checkpoint package and could not load it properly if I had library(dplyr) in my R chunk. I removed the dplyr folder from ~/Library/R/3.3/library/dplyr as well as the dplyr folder from ~/.checkpoint/2017-01-01/lib/dplyr then just loaded the libraries and checkpoint seemed to correctly load dplyr.
I was obviously using the checkpoint date of January 1 2017. I also had to create the local .checkpoint folder because it was not automatically created. My document compiles (I haven't tried any serious code in it yet though) so I am assuming it works.