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

Unable to run digitizeRadii() from command line #45

Open
adospace opened this issue Oct 29, 2020 · 4 comments
Open

Unable to run digitizeRadii() from command line #45

adospace opened this issue Oct 29, 2020 · 4 comments

Comments

@adospace
Copy link

Describe the bug
Using RScript.exe from the command line it's not possible to run digitizeRadii()

To Reproduce
Create an R file with this content:

setwd("C:\\Users\\adosp\\AppData\\Roaming\\IowaDnr.DesktopApp\\tmpBDCF")
library(RFishBC)
library(dplyr)
library(RJSONIO)
digitizeRadii("Scale_1.jpg",id="1",reading="HBO",edgeIsAnnulus=FALSE)

than run it with the command:
C:\Program Files\R\R-4.0.3\bin\x64> Rscript.exe "path-to-R-file"

it returns:
Error in eval(predvars, data, env) : object "y" not found
Calls: digitizeRadii ... lines.formula -> eval -> eval -> -> eval -> eval

Expected behavior
It should open the window with the image as it does in RGui

Desktop (please complete the following information):

  • OS: Windows
  • Browser [e.g. chrome, safari]
  • Version latest

Additional context
It may be somenthing with the default device that from the command line is "pdf" and not "windows"?

Thanks in advance for any hint!

@keithhurley
Copy link

did you ever find a solution to this?

@adospace
Copy link
Author

No, I didn't. I somewhat solved running the rgui and sending a bounce of wm messages to it in order to open the image to digitalize

@keithhurley
Copy link

keithhurley commented Jan 26, 2022 via email

@droglenc
Copy link
Contributor

Unfortunately, I also do not have a solution for this yet.

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

No branches or pull requests

3 participants