When I run ocpu_start_app("my_package") not all the functions are displayed and I cannot access those that are not listed, although they are under the my_package/R/ folder as the OpenCPU documentation states.
In my case, it seemed to be an issue with roxygen2. This package creates the documentation and the NAMESPACE file that OpenCPU uses. For some reason, roxygen2 wasn't executing automatically when I built my package from RStudio (Ubuntu 18.04). So I had to run manually roxygen2. You can do this in several ways:
From roxygen2 documentation:
roxygen2::roxygenise(), or
devtools::document(), if you’re using devtools, or
Ctrl + Shift + D, if you’re using RStudio.
After this, I just had to rebuild my project and relaunch the OpenCPU single server and all started working again.
Related
I have encountered a problem that when i try to check/get the arguments in Terraform blocks like resources, Terraform. My Mac Vscode does not work automatically shows up some argument list for me to choose. And I am wondering how to configure it and what's the combination of keyboard shortcuts to increase my efficiency?
I have installed the HarshiCorp Terraform plugin in Mac Vscode.
You should install Terraform on your machine before, then install Hashicorp's official Terraform extension, if it's already installed upgrade it (seems that their bug is fixed now)
Then, on your VS Code press CMD+Shift+X And make sure that your extension is enabled.
Also, try reloading your extension by reloading your window as their documentation states:
You can reload the Terraform extension by opening the command palette
and starting to type Reload. A list of commands will appear, select
Reload Window. This will reload the Visual Studio Code window without
closing down the entire editor, and without losing any work currently
open in the editor.
After you install Terraform and the extension, you should have VS Code open in the same directory where you ran terraform init as it will load your locally installed modules and loads your providers' configuration. For example, if you are pulling modules from a private registry the module documentation may not detect your schemas and then it won't offer autocompletion capabilities.
If you still have issues refer to these links:
https://marketplace.visualstudio.com/items?itemName=HashiCorp.terraform#troubleshooting
I've downloaded Apache nifi 1.17.0 and tried to start it by bin/run0nifi.bat, but it didn't work. When I click on it window open and disappear in the same time.
I'm working on windows 11 pro
What should i do?
I tried to start it by console and tried to start 1.19.1 and unfortunately it didn't help
I'm a beginner so I might not have done some obvious things
Thx for help)
You need to do two things first of all:
you need to make sure that you have installed JAVA on your machine and set the PATH for the JDK in the Environment Variables (JAVA_HOME).
If JAVA is configured correctly you need to open CMD and go within the NiFi Folder. From there, you should execute the run-nifi.bat manually and see if anythings gets written in the CMD window.
Besides that, you can go within the logs folder and see if any logs are being generated. Most likely you will find something in the nifi-app.log.
We're switching from a classic Desktop application project, where everything fitted nicely within Visual Studio, to an Angular Web Project, where everything seems to be scattered over different environments all over the place.
One of the changes is nuget packages, which makes me feel like we're back in the 80's, where everything needs to be done with commands in Command Prompt, instead of just using buttons and menus. I find this slightly annoying, as now you have to remember a long list of commands where previously you could just remember a button's location.
Is there a place where you can store a list of commands that you can browse in your Package Manager Console? For instance, if I forget the command that script my model into SQL Scripts, I can just browse the list, instead of looking for the email where a colleague told me what it was?
The Package Manager Console is a PowerShell session, so you could create a PowerShell script Module with everything in it.
And even load from your profile (for package manager specific use file: run $profile.CurrentUserCurrentHost in the console to get the path).
so i have a console application that stitches a pdf into one big long tif however when i go to make a setup project it all seems to work fine until i move the installer to another commutator and run it it installs fine however whenever i run the application it gives an error
The program can't start because ucrtbassed.dll is missing from your computer
i have seen videos where when they add the primary output some msm file is added depending on the library's used in he code however no such file appears when i add my output in the application folder section in the main setup file
edit::
i feel that i cant explain this correctly and thus will upload it as and image this is the main application file inside of the setup project it looks like its only copying the source code when it should also include some dlls
application folder on the setup wizard
You are shipping a debug version of your app, and it is failing because it is asking for the debug version of the Universal CRT (that's why there is a "d" on the end, and it's actually ucrtbased.dll). In general the debug versions of these are available for debugging on developer's machines, not for client machines. So build a release version of your app and see what it does. If it fails looking for ucrtbase.dll, then clients can use this to install it:
https://www.microsoft.com/en-us/download/details.aspx?id=48234
I have to use d3 graph at my web page. I never worked with d3. That's why, I'm facing some problem using it. Basically, I've to work at dropbox folder. So, my clients can see the worked file locally at their browser. Consider, I put a d3 chart at file.html file and my folder structure is like this
D:\Projects\Dropbox (Company)\MyName\FolderName\file.html
But, I saw that to run and see/show d3 examples I need run web server or run a python server. So, I've downloaded Python 3.4.1 and installed by double click. It's installed at this directory: C:\Python34
After that, I tried to follow d3's documentation for installing python server. So, I opened my cmd and type:
python -m http.server 8888 &
But, it gives me this error:
So, my question is:
How can I install python web server?
After installing that web server, is it possible see the d3 chart via this link: file:///D:/Projects/Dropbox (Company)/MyName/FolderName/file.html or I've put my files inside htdocs and run via http://localhost/folderName/file.html (I don't want to put files inside htdocs. It'll be tough for my clients see the output of the files directly from their pc)?
If it can't be seen without putting inside htdocs folder, I may find solution for running d3.js locally without installing any additional software/server(though I've found this type of solution for some d3.js chart but not for all). Thanks in advance and please don't mind if it's a lame question. Basically, it's my first day working with d3.js and I'm only ameture level skilled with javascript and jQuery.
OK, browsers are designed with security in mind, by default they don't let scripts go and grab a file from anywhere for very good reasons. They allow you to grab a file from the server or through requests. So to share your work with your client you will either need to use a hosting service - I would recommend bl.ocks, design your visualisation so it doesn't require any external data or provide instructions on how to disable browser security. You can read more about this here, here and here.
On python, in many cases python is already installed on people machines, so running a server from python shouldn't be an issue. All you have to do (on a windows machine) is launch your command prompt navigate to your directory and start your python server. Then open a browser and navigate to the localhost. Please note that python needs to be set as an environmental variable (i.e. your system path), the python documentation might help you here.