Closed nagdevAmruthnath closed 4 years ago
Alright! so, i did a pull of the package and did a build and came across this error Error : object ‘across’ is not exported by 'namespace:dplyr'
along with Packages suggested but not available for checking: ‘jpeg’ ‘systemr’
warning.
I looked up the recent Travis-CI build and found that dplyr
version used in here is 1.0.1. Also, the packages hms
and ggplot2
had to be updated. For some reason, my Rstudio from Rocker tries to pull packages from https://mran.microsoft.com/
and they usually have older and stable version of the packages. Apparently this needed a new version.
To solve the above issues, did the following:
# the reason repos is cloud.r-project is because, this is what was used for build
install.packages("dplyr", version = "1.0.1", repos = "https://cloud.r-project.org")
install.packages("hms", repos = "https://cloud.r-project.org")
install.packages("ggplot2", repos = "https://cloud.r-project.org")
I did a complete check of the package and was successfully built with few warnings (no Biggie!)
==> devtools::check()
Updating threadr documentation
Warning: Version of roxygen2 last used with this package is 7.1.1. You only have version 6.1.1
Writing NAMESPACE
Loading threadr
Loading required package: stringr
Loading required package: lubridate
Attaching package: ‘lubridate’
The following object is masked from ‘package:base’:
date
Loading required package: dplyr
Attaching package: ‘dplyr’
The following objects are masked from ‘package:lubridate’:
intersect, setdiff, union
The following objects are masked from ‘package:stats’:
filter, lag
The following objects are masked from ‘package:base’:
intersect, setdiff, setequal, union
Warning: dplyr_re_exports.R:7: Missing name
Warning: dplyr_re_exports.R:24: Missing name
Warning: stats_and_utils_re_exports.R:4: Missing name
Warning: stats_and_utils_re_exports.R:10: Missing name
Warning: stats_and_utils_re_exports.R:16: Missing name
Warning: zzz.R:3: Missing name
Writing NAMESPACE
── Building ─────────────────────────────────────────────────────────────────────────────────────────────────────── threadr ──
Setting env vars:
● CFLAGS : -Wall -pedantic -fdiagnostics-color=always
● CXXFLAGS : -Wall -pedantic -fdiagnostics-color=always
● CXX11FLAGS: -Wall -pedantic -fdiagnostics-color=always
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
✔ checking for file ‘/home/rstudio/threadr/DESCRIPTION’ (335ms)
─ preparing ‘threadr’:
✔ checking DESCRIPTION meta-information ...
─ checking for LF line-endings in source and make files and shell scripts
─ checking for empty or unneeded directories
─ building ‘threadr_0.9.002.tar.gz’
── Checking ─────────────────────────────────────────────────────────────────────────────────────────────────────── threadr ──
Setting env vars:
● _R_CHECK_CRAN_INCOMING_REMOTE_: FALSE
● _R_CHECK_CRAN_INCOMING_ : FALSE
● _R_CHECK_FORCE_SUGGESTS_ : FALSE
── R CMD check ─────────────────────────────────────────────────────────────────
─ using log directory ‘/home/rstudio/threadr.Rcheck’ (367ms)
─ using R version 3.5.2 (2018-12-20)
─ using platform: x86_64-pc-linux-gnu (64-bit)
─ using session charset: UTF-8
─ using options ‘--no-manual --as-cran’
✔ checking for file ‘threadr/DESCRIPTION’
─ checking extension type ... Package
─ this is package ‘threadr’ version ‘0.9.002’
─ package encoding: UTF-8
✔ checking package namespace information ...
N checking package dependencies (3.4s)
Packages suggested but not available for checking: ‘jpeg’ ‘systemr’
✔ checking if this is a source package
✔ checking if there is a namespace
✔ checking for executable files (1.2s)
✔ checking for hidden files and directories
✔ checking for portable file names ...
✔ checking for sufficient/correct file permissions
✔ checking serialization versions
✔ checking whether package ‘threadr’ can be installed (4.3s)
✔ checking installed package size ...
✔ checking package directory ...
✔ checking DESCRIPTION meta-information (401ms)
✔ checking top-level files
✔ checking for left-over files
✔ checking index information
✔ checking package subdirectories ...
✔ checking R files for non-ASCII characters ...
✔ checking R files for syntax errors ...
✔ checking whether the package can be loaded (867ms)
✔ checking whether the package can be loaded with stated dependencies (892ms)
✔ checking whether the package can be unloaded cleanly (853ms)
✔ checking whether the namespace can be loaded with stated dependencies (595ms)
✔ checking whether the namespace can be unloaded cleanly (704ms)
✔ checking loading without being on the library search path (923ms)
N checking dependencies in R code (2.4s)
Package in Depends field not imported from: ‘lubridate’
These packages need to be imported from (in the NAMESPACE file)
for when this namespace is loaded but not attached.
Missing or unexported object: ‘stringr::str_to_sentence’
✔ checking S3 generic/method consistency (1.8s)
✔ checking replacement functions (817ms)
✔ checking foreign function calls (1.1s)
✔ checking R code for possible problems (8s)
✔ checking Rd files (542ms)
✔ checking Rd metadata ...
✔ checking Rd line widths (377ms)
N checking Rd cross-references (3.7s)
Package unavailable to check Rd xrefs: ‘openair’
✔ checking for missing documentation entries (885ms)
✔ checking for code/documentation mismatches (2.9s)
✔ checking Rd \usage sections (2.7s)
✔ checking Rd contents (424ms)
✔ checking for unstated dependencies in examples (479ms)
✔ checking examples (5.4s)
✔ checking for unstated dependencies in ‘tests’ ...
─ checking tests ...
✔ Running ‘testthat.R’
See
‘/home/rstudio/threadr.Rcheck/00check.log’
for details.
── R CMD check results ──────────────────────────────────── threadr 0.9.002 ────
Duration: 50.4s
❯ checking package dependencies ... NOTE
Packages suggested but not available for checking: ‘jpeg’ ‘systemr’
❯ checking dependencies in R code ... NOTE
Package in Depends field not imported from: ‘lubridate’
These packages need to be imported from (in the NAMESPACE file)
for when this namespace is loaded but not attached.
Missing or unexported object: ‘stringr::str_to_sentence’
❯ checking Rd cross-references ... NOTE
Package unavailable to check Rd xrefs: ‘openair’
0 errors ✔ | 0 warnings ✔ | 3 notes ✖
R CMD check succeeded
==> R CMD INSTALL --no-multiarch --with-keep.source threadr
* installing to library ‘/usr/local/lib/R/site-library’
* installing *source* package ‘threadr’ ...
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** testing if installed package can be loaded
* DONE (threadr)
Issue installing package
There is an issue installing the latest version of the package.
Session Info
Below is my session info
Steps to reproduce
I used docker from rocker and tried to install
threadr
package and it did not work.Alternatives solution for time being