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

Get rid of setwd() bits #12

Merged
merged 2 commits into from
Aug 25, 2021
Merged

Get rid of setwd() bits #12

merged 2 commits into from
Aug 25, 2021

Conversation

cansavvy
Copy link
Contributor

@cansavvy cansavvy commented Aug 25, 2021

The setwd() bits are throwing off the leanbuild::bookdown_to_leanpub() function when I attempt to call it from outside of R like:

Rscript -e "leanbuild::bookdown_to_leanpub()" 

This makes this error:

Error in bookdown::render_book(input = input, output_format = output_format) : 
  object 'input' not found
Calls: <Anonymous> -> <Anonymous> -> <Anonymous> -> resolve -> basename
Error in setwd(owd) : object 'owd' not found

An example: https://github.com/jhudsl/ITCR_Documentation_and_Usability_Leanpub/runs/3423258226?check_suite_focus=true

It doesn't appear to be serving a function and setwd() is dicey sometimes anyway so I tried deleting it and running the command without it and it works fine.

I may find out later why this chunk was needed but I guess I'll cross that bridge when I come to it.

@cansavvy cansavvy merged commit bba0fc8 into master Aug 25, 2021
@cansavvy cansavvy deleted the cansavvy/owd-error branch August 25, 2021 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant