ambiorix-web / ambiorix

🖥️ Web framework for R
http://ambiorix.dev
GNU General Public License v3.0
211 stars 9 forks source link

Templates worked for me after one change... #38

Closed Stephen-McDaniel closed 2 years ago

Stephen-McDaniel commented 3 years ago

Before import("views"), I needed to add a working directory at the root of template app:

# app.R is in /myapps/template01
setwd("/myapps/template01")

Then it worked. Without this addition, I observed this error:

Error: [ENOENT] Failed to search directory '//views': no such file or directory

Perhaps I overlooked a more elegant solution?

Best, Stephen

JohnCoene commented 3 years ago

I don't think you should be in the /template directory to call import, this might be a bug.

JohnCoene commented 2 years ago

Hmmm, I cannot reproduce it. I'll close this and will reopen in the future if it pops up again.

Thanks for reporting this, I may have inadvertently fixed it.