STIMALiU / AdvRCourse

Course in advanced R programming
29 stars 31 forks source link

Error #14

Open fbarulli opened 6 years ago

fbarulli commented 6 years ago

Dear all, Im having a recurring issue when building the package with in Rs:


Updating lib7af documentation
Loading lib7af
Setting env vars --------------------------------------------------------------
CFLAGS  : -Wall -pedantic
CXXFLAGS: -Wall -pedantic
Building lib7af ---------------------------------------------------------------
Error in pkgbuild::build(pkg$path, tempdir(), quiet = quiet, args = build_args,  : 
  unused argument (check_dir = "/Users/fabianmontealegre/Desktop")
Calls: <Anonymous> -> <Anonymous> -> force
Execution halted

Exited with status 1.

~~~~~~~~~~~~~~~~~~~End~~~~~~~~~~~~~~~~~~

I found the same exact issue when i searched online, however there is no solution to the same. There are other similar issues however they also do not provide a general answer.

Has anyone else encountered this issue before?

Please advise

Thanks

https://github.com/hadley/devtools/issues/1592
MansMeg commented 6 years ago

Sorry. Unfortunately, I have not. But if you find the answer, please let us know.

benjaminhlina commented 6 years ago

I have ran into the same issue and have tried to troubleshoot the issue. So far on my machine, running Windows 7 Professional, with R v3.4.2 and RStudio Version 1.1.383, I have determined the following:

If you install devtools from CRAN, devtools::check() in both the console and build panel run without any issues.

After installing 'devtools' from CRAN, I have then installed the latest version of devtools from github. Upon installation of the latest version of devtools, I am able to run `devtools::check()' in the console but if I'm to run it on the build panel or use the shortcut ctrl + shift + e, it produces an error quite similar to yours.

In addition to all of this I have also uninstalled R and RStuido and packages (removed old versions of R and RStudio) without a resolution as it has been suggested that R is searching for packages in the wrong library path which I have determined that R is searching in the correct library path.

So I am unsure of how to resolve the issue, for now I will just check my packages in the console.