Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install rprojroot as part of install process? #35

Closed
nmalizia opened this issue Dec 7, 2016 · 9 comments
Closed

install rprojroot as part of install process? #35

nmalizia opened this issue Dec 7, 2016 · 9 comments

Comments

@nmalizia
Copy link

@nmalizia nmalizia commented Dec 7, 2016

Hey sir! Wondering if it's possible to set it up so the library installs rprojroot as part of the install process. I didn't have it installed and as such it popped an error for me.

@boxuancui
Copy link
Owner

@boxuancui boxuancui commented Dec 7, 2016

Do you remember when it happened? When installing the package or when loading the package, or when you call specific functions?

@boxuancui boxuancui added the type: bug label Dec 7, 2016
@boxuancui boxuancui self-assigned this Dec 7, 2016
@nmalizia
Copy link
Author

@nmalizia nmalizia commented Dec 7, 2016

@boxuancui
Copy link
Owner

@boxuancui boxuancui commented Dec 8, 2016

I need to reproduce the error, so could you do the following?

  1. Remove rprojroot and DataExplorer package if you have already installed it.
  2. Type R.version and sessionInfo() and paste the output here.
  3. Install DataExplorer package again, and paste the exact error message here.

This should not happen, because rprojroot is listed as one of the imports in rmarkdown, according to the DESCRIPTION file (line 3 item 11): https://cran.r-project.org/web/packages/rmarkdown/index.html.

If you are using Rstudio for package installation, could you also make sure you have checked the Install dependencies box?
rstudio

If you are doing from console, could you make sure it is something like this?

install.packages("DataExplorer", dependencies = TRUE)
@boxuancui
Copy link
Owner

@boxuancui boxuancui commented Dec 8, 2016

After some thoughts, let me guess what happened. You installed either rmarkdown or sparklyr at first, then removed rprojroot manually afterwards. Is this true?

If it is, I don't think this is something a package could control. You have to either re-install the reverse dependencies (revere imports) with dependencies = TRUE or install the missing dependency (rprojroot in this case) manually.

Let me know.

@boxuancui boxuancui removed the type: bug label Dec 12, 2016
@boxuancui boxuancui removed their assignment Dec 12, 2016
@boxuancui boxuancui modified the milestone: 0.4.0 Dec 12, 2016
@boxuancui
Copy link
Owner

@boxuancui boxuancui commented Dec 13, 2016

I have added rprojroot to Suggests, so it should automatically install it without error. We will see when it is released to CRAN. Please re-open if this doesn't fix it.

@boxuancui boxuancui closed this Dec 13, 2016
@boxuancui boxuancui self-assigned this Dec 13, 2016
boxuancui added a commit that referenced this issue Dec 13, 2016
@nmalizia
Copy link
Author

@nmalizia nmalizia commented Dec 13, 2016

@boxuancui
Copy link
Owner

@boxuancui boxuancui commented Dec 13, 2016

You might want to do devtools::install_github("boxuancui/DataExplorer", ref = "develop") since it is only available in the develop branch.

boxuancui added a commit that referenced this issue Dec 13, 2016
@boxuancui
Copy link
Owner

@boxuancui boxuancui commented Dec 13, 2016

I recall my previous previous comment. Putting it in Suggests does not fix it. However, I believe I find the true cause. In my DESCRIPTION file, it was importing rmarkdown 0.9.5, but rprojroot package was added to the NAMESPACE after that version. So, I changed 0.9.5 to current version, and it should fix that problem, for real this time.

@nmalizia
Copy link
Author

@nmalizia nmalizia commented Dec 13, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.