setting default working directory to project folder in R studio - r

When I open my R project from the project folder, the default working directory is not my project folder.
I thought it should, by default, set the working directory to the project folder. I know how to set the working directory but I need to setup r studio so that my R projects open with the project folder as the default working directory.

I have found that creating an .Rprofile file for each project and store it in the same folder as the Rprojfile works. Thanks to this
https://csgillespie.github.io/efficientR/
website about efficient R programming. Only that it means I have to create the .Rprofile file myself every time I create a new project. This is however better than having to set the working directory manually making my projects non-portable.

Related

How to make VSTS Build copy files to the output directory with no sub-directories?

I an ASP.NET Core application I need to copy some fonts to the output directory. In my project I store these fonts in the directory ProjectFolder/Assets.
In the properties of each font I have set CopyToOutputDirectory to Always.
When Visual Studio build the project, the files are copied to the same directory where project.exe is built. This is the behavior I expect.
But when I build the project using VSTS, the files are copied to a sub-directory named Assets, this is one level below than the exe.
How can I make VSTS copy the files to the same folder than the exe (as Visual Studio does).
Thank you in advance.
With TFS2017update1 and above, VSTS, you could simply check Flatten Folders under Advanced option in Copy Files Task. The easiest solution for now.
This option in "Advanced" section of "Copy Files" step of your build definition.
This will flatten the folder structure and copy all files into the
specified target folder.
If this do not meet your requirement, you could try to use copy files step,take a look at this thread.

Qt can't access some .dll files

I am working on a plugin for some application, and I am using libtiff. The filter is working just fine, but there is a problem. There are some .dll files that have to be included in compile path. When I add those .dlls in \QtSDK\Desktop\Qt\4.8.1\mingw\bin the plugin is working fine, but when i delete one or more of those .dlls, plugin is not recognised by the application. Those .dll are not included in the Qt SDK by default.
Is there any way I can include those .dll in my plugin and add a path to them without copying them to the Qt SDK bin folder.
Usually I add my plugins to my application directory and add this line of code to main() in main.cpp like so:
qApp->addLibraryPath(QString("."));
Image plugins go in imageformats and SQL drivers (ODBC) go in sqldrivers. You can make the library path anything you want relative to your application root directory. I like to keep things simple and just reference the root directory.

create setup for an existent exe file

I want to create a setup for an existent .exe file. This file needs some .ocx and .dll files to run correctly. So this mentioned setup should paste these all files in a specified path and then run the .exe file.
I have tried with installshield 2010 basic and InstallScript projects but i could not create some of dialogs in the format that i wanted.
Is there any way to create this setup? Or any one may help me to work with installshield?
You might find working with another setup program easier, try the NSIS (Nullsoft Scriptable Install System). It has a RegDLL function:
RegDLL "$WINDIR\OCX\vbalGrid6.ocx"
if you need that also.

How to make Flex Air FileSystemTree to show in Package view

I am using Flex FileSystemTree.
Inside my root folder I got one folder with 3 files in it.
In order to brows to my files using FileSystemTree, I need to open my root folder, to open my inner folder and only then I get the files.
I wish that if the the folder got no files it will present as package, just like in eclipse. so I only need to open one folder(root.innerfolder)
I hope my question is clear, please tell me if not.

Is it possible to create in Aptana a Project with a different name to the containing folder?

I've been importing a number of project folders into Apatana 3 and some of them are stored on disk in folders with identical names. It's not really easy for me to change the names of the folders themselves, as they are the same project on different servers (one is a local copy, the other a copy on a development server).
I tried importing the folder as a project and setting the name of the project to FOLDERNAME - local or FOLDERNAME - dev (depending on the location) but all that seems to do is create a new folder with the project name, rather than importing the specified project!
Is this normal behaviour and is there a way around it?
After a bit of fiddling I managed to find a solution, hopefully this will help anyone who comes across the same issue:
When the Aptana workspace is set to the parent directory of a project, Aptana renames the project folder to match the project's name. By setting the workspace to a different folder the project can be renamed without altering the folder name on disk.
I'm not entirely sure why Aptana does this, but changing the workspace does seem to solve the issue.
You should just be able to import the project, right-click on it and rename it. The project name does not have to match the folder name. It may be how you are importing them...please follow the steps here: https://wiki.appcelerator.org/display/tis/Importing+an+Existing+Project

Resources